Class: Noise::Functions::Hash::Blake2b
- Inherits:
-
Object
- Object
- Noise::Functions::Hash::Blake2b
- Defined in:
- lib/noise/functions/hash/blake2b.rb
Constant Summary collapse
- HASHLEN =
64
- BLOCKLEN =
128
Instance Method Summary collapse
Instance Method Details
#blocklen ⇒ Object
17 18 19 |
# File 'lib/noise/functions/hash/blake2b.rb', line 17 def blocklen BLOCKLEN end |
#hash(data) ⇒ Object
9 10 11 |
# File 'lib/noise/functions/hash/blake2b.rb', line 9 def hash(data) RbNaCl::Hash.blake2b(data) end |
#hashlen ⇒ Object
13 14 15 |
# File 'lib/noise/functions/hash/blake2b.rb', line 13 def hashlen HASHLEN end |