authorgravatar for kris.tate+github@gmail.comkristopher tate <kris.tate+github@gmail.com> 2018-11-03 17:05:57+09:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-11-03 15:03:48-04:00
log5d014d4b3775783b2f4dc991b827c298369d066a
tree629aceac083096e615a4462872895445e2520ce5
parentc7b79284efc037b0e310a17bc32148e877124ddc

os.crypto: support for HmacBlake2s256 variety;


2 files changed, 2 insertions(+), 0 deletions(-)

std/crypto/hmac.zig+1
......@@ -6,6 +6,7 @@ const mem = std.mem;
66pub const HmacMd5 = Hmac(crypto.Md5);
77pub const HmacSha1 = Hmac(crypto.Sha1);
88pub const HmacSha256 = Hmac(crypto.Sha256);
9pub const HmacBlake2s256 = Hmac(crypto.Blake2s256);
910
1011pub fn Hmac(comptime Hash: type) type {
1112 return struct.{
std/crypto/index.zig+1
......@@ -23,6 +23,7 @@ const hmac = @import("hmac.zig");
2323pub const HmacMd5 = hmac.HmacMd5;
2424pub const HmacSha1 = hmac.HmacSha1;
2525pub const HmacSha256 = hmac.HmacSha256;
26pub const HmacBlake2s256 = hmac.HmacBlake2s256;
2627
2728const import_chaCha20 = @import("chacha20.zig");
2829pub const chaCha20IETF = import_chaCha20.chaCha20IETF;