| ... | @@ -10,6 +10,11 @@ const debug = std.debug; | ... | @@ -10,6 +10,11 @@ const debug = std.debug; |
| 10 | const assert = debug.assert; | 10 | const assert = debug.assert; |
| 11 | const mem = std.mem; | 11 | const mem = std.mem; |
| 12 | | 12 | |
| | 13 | // Exports |
| | 14 | comptime { |
| | 15 | _ = crypto.kdf.pbkdf2; |
| | 16 | } |
| | 17 | |
| 13 | // RFC 2898 Section 5.2 | 18 | // RFC 2898 Section 5.2 |
| 14 | // | 19 | // |
| 15 | // FromSpec: | 20 | // FromSpec: |
| ... | @@ -155,7 +160,7 @@ test "RFC 6070 one iteration" { | ... | @@ -155,7 +160,7 @@ test "RFC 6070 one iteration" { |
| 155 | | 160 | |
| 156 | var derivedKey: [dkLen]u8 = undefined; | 161 | var derivedKey: [dkLen]u8 = undefined; |
| 157 | | 162 | |
| 158 | std.crypto.kdf.pbkdf2(&derivedKey, p, s, c, crypto.auth.hmac.HmacSha1); | 163 | pbkdf2(&derivedKey, p, s, c, crypto.auth.hmac.HmacSha1); |
| 159 | | 164 | |
| 160 | const expected = "0c60c80f961f0e71f3a9b524af6012062fe037a6"; | 165 | const expected = "0c60c80f961f0e71f3a9b524af6012062fe037a6"; |
| 161 | | 166 | |