Lines Matching defs:cipher
73 #include "cipher.h"
230 fatal("packet_set_connection: cannot load cipher 'none'");
287 if (enc == NULL || !cipher_is_cbc(enc->cipher) || (mac && mac->etm))
399 return (cipher_get_number(active_state->receive_context.cipher));
557 const Cipher *cipher = cipher_by_number(number);
559 if (cipher == NULL)
560 fatal("packet_set_encryption_key: unknown cipher number %d", number);
567 cipher_init(&active_state->send_context, cipher, key, keylen, NULL,
569 cipher_init(&active_state->receive_context, cipher, key, keylen, NULL,
787 if (cipher_authlen(enc->cipher) == 0 && mac_init(mac) == 0)
790 cipher_init(cc, enc->cipher, enc->key, enc->key_len,
871 if ((authlen = cipher_authlen(enc->cipher)) != 0)
960 /* EtM: compute mac over aadlen + cipher text */
1280 if ((authlen = cipher_authlen(enc->cipher)) != 0)
1305 * check if input size is less than the cipher block size,