Use comptime to expose public method to doc system

master
Rob Napier 2020-09-13 11:15:28 -04:00
parent 8a1a40276f
commit 2f9c9662ba
1 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ const debug = std.debug;
const assert = debug.assert;
const mem = std.mem;
// Exports
comptime {
_ = crypto.kdf.pbkdf2;
}
// RFC 2898 Section 5.2
//
// FromSpec:
@ -155,7 +160,7 @@ test "RFC 6070 one iteration" {
var derivedKey: [dkLen]u8 = undefined;
std.crypto.kdf.pbkdf2(&derivedKey, p, s, c, crypto.auth.hmac.HmacSha1);
pbkdf2(&derivedKey, p, s, c, crypto.auth.hmac.HmacSha1);
const expected = "0c60c80f961f0e71f3a9b524af6012062fe037a6";