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


4547
4548
# File 'Monkeybrains.rb', line 4547

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


4568
4569
# File 'Monkeybrains.rb', line 4568

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


4559
4560
# File 'Monkeybrains.rb', line 4559

def update(message)
end