Skip to main content

Class: Poly1305

Implementation of Poly1305.

Table of contents

Constructors

Methods

Constructors

constructor

new Poly1305(key)

Create a new instance of Poly1305.

Parameters

NameTypeDescription
keyUint8ArrayThe key.

Methods

finish

finish(): void

Finished the mac.

Returns

void


update

update(input): Poly1305

Update the hash.

Parameters

NameTypeDescription
inputUint8ArrayThe data to update with.

Returns

Poly1305

Hasher instance.


digest

digest(): Uint8Array

Get the digest for the hash.

Returns

Uint8Array

The mac.