| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import * as russh from 'russh'
- import { SSHAlgorithmType } from './api'
- export const supportedAlgorithms = {
- [SSHAlgorithmType.KEX]: russh.getSupportedKexAlgorithms().filter(x => x !== 'none'),
- [SSHAlgorithmType.HOSTKEY]: russh.getSupportedKeyTypes().filter(x => x !== 'none'),
- [SSHAlgorithmType.CIPHER]: russh.getSupportedCiphers().filter(x => x !== 'clear'),
- [SSHAlgorithmType.HMAC]: russh.getSupportedMACs().filter(x => x !== 'none'),
- }
- export const defaultAlgorithms = {
- [SSHAlgorithmType.KEX]: [
- 'curve25519-sha256',
- '[email protected]',
- 'diffie-hellman-group16-sha512',
- 'diffie-hellman-group14-sha256',
- 'ext-info-c',
- 'ext-info-s',
- '[email protected]',
- '[email protected]',
- ],
- [SSHAlgorithmType.HOSTKEY]: [
- 'ssh-ed25519',
- 'ecdsa-sha2-nistp256',
- 'ecdsa-sha2-nistp521',
- 'rsa-sha2-256',
- 'rsa-sha2-512',
- 'ssh-rsa',
- ],
- [SSHAlgorithmType.CIPHER]: [
- '[email protected]',
- '[email protected]',
- 'aes256-ctr',
- 'aes192-ctr',
- 'aes128-ctr',
- ],
- [SSHAlgorithmType.HMAC]: [
- '[email protected]',
- '[email protected]',
- 'hmac-sha2-512',
- 'hmac-sha2-256',
- '[email protected]',
- 'hmac-sha1',
- ],
- }
|