Commit 5d014d4b37

kristopher tate <kris.tate+github@gmail.com>
2018-11-03 09:05:57
os.crypto: support for HmacBlake2s256 variety;
1 parent c7b7928
Changed files (2)
std/crypto/hmac.zig
@@ -6,6 +6,7 @@ const mem = std.mem;
 pub const HmacMd5 = Hmac(crypto.Md5);
 pub const HmacSha1 = Hmac(crypto.Sha1);
 pub const HmacSha256 = Hmac(crypto.Sha256);
+pub const HmacBlake2s256 = Hmac(crypto.Blake2s256);
 
 pub fn Hmac(comptime Hash: type) type {
     return struct.{
std/crypto/index.zig
@@ -23,6 +23,7 @@ const hmac = @import("hmac.zig");
 pub const HmacMd5 = hmac.HmacMd5;
 pub const HmacSha1 = hmac.HmacSha1;
 pub const HmacSha256 = hmac.HmacSha256;
+pub const HmacBlake2s256 = hmac.HmacBlake2s256;
 
 const import_chaCha20 = @import("chacha20.zig");
 pub const chaCha20IETF = import_chaCha20.chaCha20IETF;