Lines Matching defs:cipher
32 /* Table of NIDs for each cipher */
159 const SSL_CIPHER *cipher;
332 const EVP_CIPHER *cipher
335 ctx->ssl_cipher_methods[i] = cipher;
336 if (cipher == NULL)
499 const EVP_CIPHER *cipher = ctx->ssl_cipher_methods[i];
501 if (cipher == NULL
502 || !ssl_evp_cipher_up_ref(cipher))
518 c = s->cipher;
715 co_list[co_list_num].cipher = c;
768 *ca_curr = ciph_curr->cipher;
777 * or represent a cipher strength value (will be added in any case because algorithms=0).
853 cp = curr->cipher;
894 /* add the cipher if it has not been added yet. */
902 /* Move the added cipher to this location */
961 if (curr->active && (curr->cipher->strength_bits > max_strength_bits))
962 max_strength_bits = curr->cipher->strength_bits;
978 number_uses[curr->cipher->strength_bits]++;
1083 * Now search for the cipher alias in the ca_list. Be careful
1085 * will make the rule "ADH:SOME" and the cipher
1087 * So additionally check whether the cipher name found
1307 const SSL_CIPHER *cipher;
1308 /* Arbitrary sized temp buffer for the cipher name. Should be big enough */
1318 cipher = ssl3_get_cipher_by_std_name(name);
1319 if (cipher == NULL)
1323 if (!sk_SSL_CIPHER_push(ciphersuites, cipher)) {
1515 * ...and generally, our preferred cipher is AES.
1585 * We also need cipher aliases for selecting based on the rule_str.
1588 * For 1) we need the available ciphers and for 2) the cipher
1659 BIO_printf(trc_out, "cipher selection:\n");
1662 * The cipher selection for the list is done. The ciphers are added
1667 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) {
1674 BIO_printf(trc_out, "<%s>\n", curr->cipher->name);
1690 char *SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, int len)
1707 alg_mkey = cipher->algorithm_mkey;
1708 alg_auth = cipher->algorithm_auth;
1709 alg_enc = cipher->algorithm_enc;
1710 alg_mac = cipher->algorithm_mac;
1712 ver = ssl_protocol_to_string(cipher->min_tls);
1894 BIO_snprintf(buf, len, format, cipher->name, ver, kx, au, enc, mac);
1913 /* return the actual cipher being used */
1921 /* return the actual cipher being used in RFC standard name */
1940 /* number of bits for symmetric cipher */
2180 /* Non-AEAD modes. Calculate MAC/cipher overhead separately */
2193 known CBC cipher. */