UNPKG

paseto-ts

Version:

PASETO v4 (encrypt, decrypt, sign & verify) in TypeScript

53 lines (52 loc) 1.18 kB
/** * Accepted magic strings for each purpose */ export declare const KEY_MAGIC_STRINGS: { v4: { local: string; secret: string; public: string; }; }; export declare const TOKEN_MAGIC_STRINGS: { v4: { local: string; public: string; }; }; /** * Accepted magic strings as bytes for each purpose */ export declare const KEY_MAGIC_BYTES: { v4: { local: Uint8Array<ArrayBuffer>; secret: Uint8Array<ArrayBuffer>; public: Uint8Array<ArrayBuffer>; }; }; export declare const TOKEN_MAGIC_BYTES: { v4: { local: Uint8Array<ArrayBuffer>; public: Uint8Array<ArrayBuffer>; }; }; /** * Accepted key lengths for each purpose (in bytes) */ export declare const KEY_LENGTHS: { v4: { local: number; secret: number; public: number; }; }; /** * Bytes to use for the encryption key */ export declare const KEY_BYTES: Uint8Array<ArrayBufferLike>; /** * Bytes to use for the authentication key */ export declare const AUTH_BYTES: Uint8Array<ArrayBufferLike>; export declare const MAX_DEPTH_DEFAULT = 32; export declare const MAX_KEYS_DEFAULT = 128;