UNPKG

tweetnacl-ts

Version:

Port of TweetNaCl cryptographic library to TypeScript (and ES6)

10 lines (9 loc) 339 B
import { ByteArray } from './array'; export declare const enum SealedBoxLength { PublicKey = 32, SecretKey = 32, Nonce = 24, Overhead = 48 } export declare function sealedbox(m: ByteArray, pk: ByteArray): ByteArray; export declare function sealedbox_open(c: ByteArray, pk: ByteArray, sk: ByteArray): ByteArray | undefined;