Hmac

scalus.crypto.Hmac
object Hmac

HMAC (Hash-based Message Authentication Code) implementation.

Implementation follows RFC 2104. Provides HMAC-SHA512 for use in BIP-39 and SLIP-0010.

Attributes

See also
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Hmac.type

Members list

Value members

Concrete methods

def hmacSha512(key: Array[Byte], data: Array[Byte]): Array[Byte]

Compute HMAC-SHA512.

Compute HMAC-SHA512.

Value parameters

data

the data to authenticate

key

the secret key (any length)

Attributes

Returns

64-byte MAC