aboutsummaryrefslogtreecommitdiffstats
path: root/common.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-25m doc fix1.1.2.1Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix critical bug for automatic salt generation1.1.2Mattias Andrée1-1/+1
If getrandom(3) generated bytes with the highest bit set and (char) is (signed char) (ones' or two's complement is used), those bytes would become negative indices, rather than be inside [0, 64), causing random data to be writting into the salt. Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Improve srand seedMattias Andrée1-1/+24
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Whitespace fix + do not call srand unless requiredMattias Andrée1-12/+14
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix documentationMattias Andrée2-3/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-03-20Fix allocation success check and deallocation order1.1.1Mattias Andrée1-1/+5
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-19Fix linking for Mac OSMattias Andrée4-0/+7
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-19Fix linking for WindowsMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Bump version1.1Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Fix depsMattias Andrée5-5/+5
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add libar2simplified_decode_rMattias Andrée8-178/+409
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add libar2simplified_init_contextMattias Andrée6-360/+441
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add libar2simplified_recommendation1.0Mattias Andrée9-4/+145
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add test for salt generationMattias Andrée1-1/+70
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add tests for *-prefix syntaxMattias Andrée1-19/+55
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Add readme and man pagesMattias Andrée8-0/+582
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Rewait if sem_wait is interrupted (pthread_mutex_lock cannot be interrupted)Mattias Andrée1-1/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15mMattias Andrée2-39/+2
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-15Fix doc and adjust text widthMattias Andrée1-36/+26
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-14Add documentation and make sure the password is always erasedMattias Andrée2-1/+132
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-14Add libar2simplified_crypt and fix threadingMattias Andrée6-146/+230
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-13XOR seed provided to srand with data depending on current seed, in case it is already seed in a better mannerMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2022-02-13Fix typoMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@kth.se>