Class: Toybox::Cryptography::Hash

Inherits:
Lang::Object show all

Overview

Compute the Hash digest of a message.

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(options) ⇒ Hash

Returns a new instance of Hash

Parameters:

Options Hash (options):

Raises:

See Also:

Since:

  • 3.0.0


3636
3637
# File 'Monkeybrains.rb', line 3636

def initialize(options)
end

Instance Method Details

digestToybox::Lang::ByteArray

Note:

This method resets the state of the Hash object, which can be used to compute a new hash

Get the current digest of the message that has been hashed.

Returns:

Since:

  • 3.0.0


3657
3658
# File 'Monkeybrains.rb', line 3657

def digest()
end

update(message) ⇒ Object

Continue hashing of a message by consuming the next chunk of data.

Repeated calls are equivalent to a single call with the concatenation of all the arguments.

Parameters:

Raises:

Since:

  • 3.0.0


3648
3649
# File 'Monkeybrains.rb', line 3648

def update(message)
end