Class to help with HmacSha1 scheme. TypeScript conversion from https://github.com/emn178/js-sha1.
• new HmacSha1(key
)
Create a new instance of HmacSha1.
Name | Type | Description |
---|---|---|
key |
Uint8Array |
The key for the hmac. |
▸ Static
sum(key
, data
): Uint8Array
Perform Sum on the data.
Name | Type | Description |
---|---|---|
key |
Uint8Array |
The key for the hmac. |
data |
Uint8Array |
The data to operate on. |
Uint8Array
The sum of the data.
▸ update(message
): HmacSha1
Update the hash with the data.
Name | Type | Description |
---|---|---|
message |
Uint8Array |
The data to update the hash with. |
The instance for chaining.
▸ digest(): Uint8Array
Get the digest.
Uint8Array
The digest.