@signumjs/crypto
Version:
Cryptographic functions for building Signum Network apps.
10 lines (9 loc) • 438 B
TypeScript
import { CryptoAdapter } from '../typings/cryptoAdapter';
export declare class NodeJSCryptoAdapter implements CryptoAdapter {
private readonly crypto;
constructor();
getRandomValues(array: Uint8Array): Uint8Array;
decryptAes256Cbc(ciphertext: Uint8Array, key: Uint8Array): Promise<Uint8Array>;
encryptAes256Cbc(plaintext: Uint8Array, key: Uint8Array): Promise<Uint8Array>;
sha256(data: ArrayBuffer): Uint8Array;
}