UNPKG

@signumjs/crypto

Version:

Cryptographic functions for building Signum Network apps.

11 lines (10 loc) 455 B
import { CryptoAdapter } from '../typings/cryptoAdapter'; export declare class WebCryptoAdapter implements CryptoAdapter { private readonly crypto; constructor(); getRandomValues(array: Uint8Array): Uint8Array; private getKey; decryptAes256Cbc(ciphertext: Uint8Array, key: Uint8Array): Promise<Uint8Array>; encryptAes256Cbc(plaintext: Uint8Array, key: Uint8Array): Promise<Uint8Array>; sha256(data: ArrayBuffer): Uint8Array; }