Module: Blake3
- Defined in:
- lib/blake3.rb,
lib/blake3/version.rb
Defined Under Namespace
Classes: Hasher
Constant Summary collapse
- VERSION =
'0.1.3'
Class Method Summary collapse
- .derive_key(context, input_key) ⇒ Object
- .digest(plain, key: nil) ⇒ Object
- .hexdigest(plain, key: nil) ⇒ Object
Class Method Details
.derive_key(context, input_key) ⇒ Object
19 20 21 22 |
# File 'lib/blake3.rb', line 19 def derive_key(context, input_key) hex = input_key.unpack1('H*') Blake3Key.new.derive(context, hex) end |