Class: Noise::Functions::Hash::Blake3

Inherits:
Object
  • Object
show all
Defined in:
lib/noise/functions/hash/blake3.rb

Constant Summary collapse

HASHLEN =
64
BLOCKLEN =
128

Instance Method Summary collapse

Instance Method Details

#blocklenObject



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

#hashlenObject



18
19
20
# File 'lib/noise/functions/hash/blake3.rb', line 18

def hashlen
  HASHLEN
end