| ... | ... | @@ -10,6 +10,11 @@ const debug = std.debug; |
| 10 | 10 | const assert = debug.assert; |
| 11 | 11 | const mem = std.mem; |
| 12 | 12 | |
| 13 | // Exports |
| 14 | comptime { |
| 15 | _ = crypto.kdf.pbkdf2; |
| 16 | } |
| 17 | |
| 13 | 18 | // RFC 2898 Section 5.2 |
| 14 | 19 | // |
| 15 | 20 | // FromSpec: |
| ... | ... | @@ -155,7 +160,7 @@ test "RFC 6070 one iteration" { |
| 155 | 160 | |
| 156 | 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 | 165 | const expected = "0c60c80f961f0e71f3a9b524af6012062fe037a6"; |
| 161 | 166 | |