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