Lines Matching defs:cipher
68 #include "cipher.h"
115 fatal("invalid cipher");
118 fatal("unknown cipher name");
274 error("%s: unknown cipher name", __func__);
289 error("%s: cipher %s requires kdf", __func__, ciphername);
435 const Cipher *cipher;
440 * to another cipher; otherwise use SSH_AUTHFILE_CIPHER.
444 if ((cipher = cipher_by_number(cipher_num)) == NULL)
445 fatal("save_private_key_rsa: bad cipher");
480 /* Store cipher type. */
493 cipher_set_key_string(&ciphercontext, cipher, passphrase,
520 const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL;
522 const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_128_cbc() : NULL;
538 cipher, passphrase, len, NULL, NULL);
543 cipher, passphrase, len, NULL, NULL);
548 cipher, passphrase, len, NULL, NULL);
657 /* Skip cipher type and reserved data. */
658 (void) buffer_get_char(©); /* cipher type */
778 const Cipher *cipher;
801 /* Read cipher type. */
816 /* Check that it is a supported cipher. */
817 cipher = cipher_by_number(cipher_type);
818 if (cipher == NULL) {
819 debug("Unsupported RSA1 cipher %d", cipher_type);
828 cipher_set_key_string(&ciphercontext, cipher, passphrase,