UNPKG

@microsoft/dev-tunnels-ssh

Version:
16 lines 669 B
/// <reference types="node" /> import { Buffer } from 'buffer'; import { Disposable } from 'vscode-jsonrpc'; import { SshAlgorithm } from './sshAlgorithm'; export declare abstract class EncryptionAlgorithm implements SshAlgorithm { readonly name: string; protected constructor(name: string); abstract readonly keyLength: number; abstract readonly blockLength: number; abstract createCipher(isEncryption: boolean, key: Buffer, iv: Buffer): Promise<Cipher>; } export interface Cipher extends Disposable { readonly blockLength: number; transform(data: Buffer): Promise<Buffer>; } //# sourceMappingURL=encryptionAlgorithm.d.ts.map