Class: Noise::Functions::Hash::Blake3
- Inherits:
-
Object
- Object
- Noise::Functions::Hash::Blake3
- Defined in:
- lib/noise/functions/hash/blake3.rb
Constant Summary collapse
- HASHLEN =
64- BLOCKLEN =
128
Instance Method Summary collapse
Instance Method Details
#blocklen ⇒ Object
22 23 24 |
# File 'lib/noise/functions/hash/blake3.rb', line 22 def blocklen BLOCKLEN end |
#hash(data) ⇒ Object
14 15 16 |
# File 'lib/noise/functions/hash/blake3.rb', line 14 def hash(data) ::Blake3.digest(data) end |
#hashlen ⇒ Object
18 19 20 |
# File 'lib/noise/functions/hash/blake3.rb', line 18 def hashlen HASHLEN end |