Lines Matching refs:cipher

55 #include "cipher.h"
3049 const struct sshcipher *cipher;
3064 if ((cipher = cipher_by_name(ciphername)) == NULL) {
3075 blocksize = cipher_blocksize(cipher);
3076 keylen = cipher_keylen(cipher);
3077 ivlen = cipher_ivlen(cipher);
3078 authlen = cipher_authlen(cipher);
3098 if ((r = cipher_init(&ciphercontext, cipher, key, keylen,
3193 const struct sshcipher *cipher = NULL;
3272 if ((cipher = cipher_by_name(ciphername)) == NULL) {
3297 blocksize = cipher_blocksize(cipher);
3304 keylen = cipher_keylen(cipher);
3305 ivlen = cipher_ivlen(cipher);
3306 authlen = cipher_authlen(cipher);
3330 (r = cipher_init(&ciphercontext, cipher, key, keylen,
3422 const struct sshcipher *cipher;
3427 * to another cipher; otherwise use SSH_AUTHFILE_CIPHER.
3431 if ((cipher = cipher_by_number(cipher_num)) == NULL)
3472 /* Store cipher type and "reserved" field. */
3488 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3517 const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL;
3519 const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_128_cbc() : NULL;
3532 cipher, passphrase, len, NULL, NULL);
3537 cipher, passphrase, len, NULL, NULL);
3542 cipher, passphrase, len, NULL, NULL);
3629 /* Skip cipher type, reserved data and key bits. */
3630 if ((r = sshbuf_get_u8(copy, NULL)) != 0 || /* cipher type */
3669 const struct sshcipher *cipher;
3700 /* Read cipher type. */
3712 /* Check that it is a supported cipher. */
3713 cipher = cipher_by_number(cipher_type);
3714 if (cipher == NULL) {
3723 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,