MCPcopy
hub / github.com/dchest/tweetnacl-js / secretbox

Interface secretbox

nacl.d.ts:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 export interface secretbox {
20 (msg: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
21 open(box: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array | null;
22 readonly keyLength: number;
23 readonly nonceLength: number;
24 readonly overheadLength: number;
25 }
26
27 export interface scalarMult {
28 (n: Uint8Array, p: Uint8Array): Uint8Array;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected