Function instantiateHmacFunction
- instantiateHmacFunction(hashFunction: ((input: Uint8Array) => Uint8Array), blockByteLength: number): ((secret: Uint8Array, message: Uint8Array) => Uint8Array)
-
Parameters
-
hashFunction: ((input: Uint8Array) => Uint8Array)
-
- (input: Uint8Array): Uint8Array
-
Returns Uint8Array
-
blockByteLength: number
Returns ((secret: Uint8Array, message: Uint8Array) => Uint8Array)
-
- (secret: Uint8Array, message: Uint8Array): Uint8Array
-
Parameters
-
secret: Uint8Array
-
message: Uint8Array
Returns Uint8Array
Instantiate a hash-based message authentication code (HMAC) function as specified by RFC 2104.