UNPKG

tedious

Version:

A TDS driver, for connecting to MS SQLServer databases.

23 lines (22 loc) 952 B
/// <reference types="node" /> export declare class ColumnEncryptionAzureKeyVaultProvider { readonly name: string; private url; private readonly rsaEncryptionAlgorithmWithOAEPForAKV; private readonly firstVersion; private credentials; private readonly azureKeyVaultDomainName; private keyClient; constructor(clientId: string, clientKey: string, tenantId: string); decryptColumnEncryptionKey(masterKeyPath: string, encryptionAlgorithm: string, encryptedColumnEncryptionKey: Buffer): Promise<Buffer>; encryptColumnEncryptionKey(masterKeyPath: string, encryptionAlgorithm: string, columnEncryptionKey: Buffer): Promise<Buffer>; private getMasterKey; private createKeyClient; private createCryptoClient; private parsePath; private azureKeyVaultSignedHashedData; private azureKeyVaultWrap; private azureKeyVaultUnWrap; private getAKVKeySize; private validateEncryptionAlgorithm; }