Lines Matching refs:cipher
40 #include "cipher.h"
432 if (options.cipher == SSH_CIPHER_NONE)
467 if (options.cipher == SSH_CIPHER_NONE)
629 if (options.cipher == SSH_CIPHER_NOT_SET) {
631 options.cipher = ssh_cipher_default;
632 } else if (options.cipher == SSH_CIPHER_INVALID ||
633 !(cipher_mask_ssh1(1) & (1 << options.cipher))) {
634 logit("No valid SSH1 cipher, using %.100s instead.",
636 options.cipher = ssh_cipher_default;
638 /* Check that the selected cipher is supported. */
639 if (!(supported_ciphers & (1 << options.cipher)))
640 fatal("Selected cipher type %.100s not supported by server.",
641 cipher_name(options.cipher));
643 debug("Encryption type: %.100s", cipher_name(options.cipher));
647 packet_put_char(options.cipher);
667 packet_set_encryption_key(session_key, SSH_SESSION_KEY_LENGTH, options.cipher);