Implementation of Poly1305.
• new Poly1305(key
)
Create a new instance of Poly1305.
Name | Type | Description |
---|---|---|
key |
Uint8Array |
The key. |
▸ finish(): void
Finished the mac.
void
▸ update(input
): Poly1305
Update the hash.
Name | Type | Description |
---|---|---|
input |
Uint8Array |
The data to update with. |
Hasher instance.
▸ digest(): Uint8Array
Get the digest for the hash.
Uint8Array
The mac.