Commit Graph

14 Commits

Author SHA1 Message Date
Frank Denis 6c2e0c2046 Year++ 2020-12-31 15:45:24 -08:00
Rocknest c35703825f Add an error set 2020-09-16 01:58:48 +03:00
Rocknest 988fc6f9d1 flip condition 2020-09-14 02:27:09 +03:00
Rocknest 73863cf72b fix build 2020-09-13 23:59:36 +03:00
Rocknest b6385870d0 Convert asserts to errors, make sure nothing overflows 2020-09-13 22:39:54 +03:00
Rob Napier 85366771ea pbkdf2 offset into dk should be usize, not u64. 2020-09-13 12:36:32 -04:00
Rob Napier 2f9c9662ba Use comptime to expose public method to doc system 2020-09-13 11:17:58 -04:00
Rob Napier 8a1a40276f Extract kdf.zig to provide namespace documentation 2020-09-13 11:08:06 -04:00
Rob Napier 257c5b5348 Explicitly reference std.crypto.kdf in test case 2020-09-13 10:50:46 -04:00
Rob Napier 0f85b85acb Improve doc text 2020-09-13 09:59:36 -04:00
Rob Napier 17156e1775 pbkdf2 "very large dklen test" should just check for crashes 2020-09-12 18:33:53 -04:00
Rob Napier 3f450b7e93 Replace Hash function with Prf. Correct offset bit-width. 2020-09-12 18:17:04 -04:00
Rob Napier 37db93e426 Review comments from pbkdf2.zig
Move block definitions inside while loop.
Use usize for offset. (This still crashes on overflow)
Remove unneeded slice syntax.
Add slow test for Very large dkLen
2020-09-12 15:03:42 -04:00
Rob Napier c2b02d01d5 Add crypto.kdf.pbkdf2 2020-09-11 17:10:27 -04:00