lib/noise/functions/hash/blake2b.rb in noise-ruby-0.1.0 vs lib/noise/functions/hash/blake2b.rb in noise-ruby-0.2.0
- old
+ new
@@ -16,8 +16,15 @@
def blocklen
BLOCKLEN
end
end
+
+ class Blake2bHMAC < HMAC::Base
+ def initialize(key = nil)
+ super(RbNaCl::Hash::Blake2b, 128, 64, key)
+ end
+ public_class_method :new, :digest, :hexdigest
+ end
end
end
end