@relaycorp/webcrypto-kms
Version:
WebCrypto-compatible client for Key Management Services like GCP KMS
12 lines (11 loc) • 611 B
TypeScript
/// <reference types="node" />
import { Crypto } from '@peculiar/webcrypto';
import { KeyAlgorithm } from 'webcrypto-core';
export declare const NODEJS_CRYPTO: Crypto;
export declare const HASHING_ALGORITHM_NAME = "SHA-256";
export declare const HASHING_ALGORITHM: KeyAlgorithm;
export declare const RSA_PSS_IMPORT_ALGORITHM: RsaHashedImportParams;
export declare const RSA_PSS_CREATION_ALGORITHM: RsaHashedKeyGenParams;
export declare const RSA_PSS_SIGN_ALGORITHM: RsaPssParams;
export declare function derSerializePublicKey(publicKey: CryptoKey): Promise<Buffer>;
export declare const KEY_USAGES: KeyUsage[];