UNPKG

@microsoft/dev-tunnels-ssh

Version:
44 lines 1.86 kB
/// <reference types="node" /> import { SshAlgorithm } from './sshAlgorithm'; import { KeyExchangeAlgorithm, KeyExchange } from './keyExchangeAlgorithm'; import { PublicKeyAlgorithm, KeyPair, RsaParameters, ECParameters } from './publicKeyAlgorithm'; import { EncryptionAlgorithm, Cipher } from './encryptionAlgorithm'; import { HmacAlgorithm, Signer, Verifier, MessageSigner, MessageVerifier, HmacInfo } from './hmacAlgorithm'; import { CompressionAlgorithm } from './compressionAlgorithm'; export { SshAlgorithm, KeyExchangeAlgorithm, KeyExchange, PublicKeyAlgorithm, KeyPair, EncryptionAlgorithm, Cipher, HmacAlgorithm, Signer, Verifier, MessageSigner, MessageVerifier, HmacInfo, CompressionAlgorithm, RsaParameters, ECParameters, }; import { WebRsa } from './web/webRsa'; import { WebECDsa } from './web/webECDsa'; import { WebEncryption } from './web/webEncryption'; export interface Random { getBytes(buffer: Buffer): void; } declare const Rsa: typeof WebRsa; declare const ECDsa: typeof WebECDsa; declare const Encryption: typeof WebEncryption; declare namespace Rsa { type KeyPair = WebRsa.KeyPair; } declare namespace ECDsa { type KeyPair = WebECDsa.KeyPair; } export { Rsa, ECDsa, Encryption }; export declare class SshAlgorithms { static keyExchange: { [id: string]: KeyExchangeAlgorithm | null; }; static publicKey: { [id: string]: PublicKeyAlgorithm | null; }; static encryption: { [id: string]: EncryptionAlgorithm | null; }; static hmac: { [id: string]: HmacAlgorithm | null; }; static compression: { [id: string]: CompressionAlgorithm | null; }; static random: Random; } export declare function algorithmNames<T extends SshAlgorithm>(list: (T | null)[]): string[]; //# sourceMappingURL=sshAlgorithms.d.ts.map