Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Latest commit

 

History

History
75 lines (41 loc) · 939 Bytes

Poly1305.md

File metadata and controls

75 lines (41 loc) · 939 Bytes

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

Poly1305

Hasher instance.


digest

digest(): Uint8Array

Get the digest for the hash.

Returns

Uint8Array

The mac.