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