PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/tweetnacl-ts/es
Просмотр файла: box.d.ts
import { ByteArray } from './array';
export declare const enum BoxLength {
PublicKey = 32,
SecretKey = 32,
SharedKey = 32,
Nonce = 24,
Overhead = 16
}
export interface BoxKeyPair {
publicKey: ByteArray;
secretKey: ByteArray;
}
export declare function box(msg: ByteArray, nonce: ByteArray, publicKey: ByteArray, secretKey: ByteArray): ByteArray;
export declare function box_before(publicKey: ByteArray, secretKey: ByteArray): ByteArray;
export declare const box_after: (msg: ByteArray, nonce: ByteArray, key: ByteArray) => ByteArray;
export declare function box_open(msg: ByteArray, nonce: ByteArray, publicKey: ByteArray, secretKey: ByteArray): ByteArray | undefined;
export declare const box_open_after: (box: ByteArray, nonce: ByteArray, key: ByteArray) => ByteArray | undefined;
export declare function box_keyPair(): BoxKeyPair;
export declare function box_keyPair_fromSecretKey(secretKey: ByteArray): BoxKeyPair;
Выполнить команду
Для локальной разработки. Не используйте в интернете!