Module @stablelib/poly1305
Variables
Const DIGEST_LENGTH
DIGEST_LENGTH: 16 = 16
Functions
equal
- equal(a: Uint8Array, b: Uint8Array): boolean
Parameters
a: Uint8Array
b: Uint8Array
Returns boolean
oneTimeAuth
- oneTimeAuth(key: Uint8Array, data: Uint8Array): Uint8Array
Parameters
key: Uint8Array
data: Uint8Array
Returns Uint8Array
Returns true if two authenticators are 16-byte long and equal. Uses contant-time comparison to avoid leaking timing information.