• Home
  • Raw
  • Download

Lines Matching refs:cipher

553   const SSL_CIPHER *cipher;  member
657 const SSL_CIPHER *cipher, uint16_t version, int is_dtls) { in ssl_cipher_get_evp_aead() argument
664 if (cipher->algorithm_mac == SSL_AEAD) { in ssl_cipher_get_evp_aead()
665 if (cipher->algorithm_enc == SSL_AES128GCM) { in ssl_cipher_get_evp_aead()
669 } else if (cipher->algorithm_enc == SSL_AES256GCM) { in ssl_cipher_get_evp_aead()
673 } else if (cipher->algorithm_enc == SSL_CHACHA20POLY1305) { in ssl_cipher_get_evp_aead()
685 } else if (cipher->algorithm_mac == SSL_SHA1) { in ssl_cipher_get_evp_aead()
686 if (cipher->algorithm_enc == SSL_eNULL) { in ssl_cipher_get_evp_aead()
692 } else if (cipher->algorithm_enc == SSL_3DES) { in ssl_cipher_get_evp_aead()
702 } else if (cipher->algorithm_enc == SSL_AES128) { in ssl_cipher_get_evp_aead()
712 } else if (cipher->algorithm_enc == SSL_AES256) { in ssl_cipher_get_evp_aead()
727 } else if (cipher->algorithm_mac == SSL_SHA256) { in ssl_cipher_get_evp_aead()
728 if (cipher->algorithm_enc == SSL_AES128) { in ssl_cipher_get_evp_aead()
730 } else if (cipher->algorithm_enc == SSL_AES256) { in ssl_cipher_get_evp_aead()
737 } else if (cipher->algorithm_mac == SSL_SHA384) { in ssl_cipher_get_evp_aead()
738 if (cipher->algorithm_enc != SSL_AES256) { in ssl_cipher_get_evp_aead()
823 const SSL_CIPHER *cipher = &kCiphers[i]; in ssl_cipher_collect_ciphers() local
824 if (ssl_method->supports_cipher(cipher) && in ssl_cipher_collect_ciphers()
826 cipher->algorithm_mkey != SSL_kGENERIC) { in ssl_cipher_collect_ciphers()
827 co_list[co_list_num].cipher = cipher; in ssl_cipher_collect_ciphers()
910 cp = curr->cipher; in ssl_cipher_apply_rule()
998 SSL_CIPHER_get_bits(curr->cipher, NULL) > max_strength_bits) { in ssl_cipher_strength_sort()
999 max_strength_bits = SSL_CIPHER_get_bits(curr->cipher, NULL); in ssl_cipher_strength_sort()
1015 number_uses[SSL_CIPHER_get_bits(curr->cipher, NULL)]++; in ssl_cipher_strength_sort()
1140 const SSL_CIPHER *cipher = &kCiphers[j]; in ssl_cipher_process_rulestr() local
1141 if (rule_equals(cipher->name, buf, buf_len) || in ssl_cipher_process_rulestr()
1142 rule_equals(cipher->standard_name, buf, buf_len)) { in ssl_cipher_process_rulestr()
1143 cipher_id = cipher->id; in ssl_cipher_process_rulestr()
1326 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) { in ssl_create_cipher_list()
1374 uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *cipher) { return cipher->id; } in SSL_CIPHER_get_id() argument
1376 uint16_t ssl_cipher_get_value(const SSL_CIPHER *cipher) { in ssl_cipher_get_value() argument
1377 uint32_t id = cipher->id; in ssl_cipher_get_value()
1383 int SSL_CIPHER_is_AES(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES() argument
1384 return (cipher->algorithm_enc & SSL_AES) != 0; in SSL_CIPHER_is_AES()
1387 int SSL_CIPHER_has_SHA1_HMAC(const SSL_CIPHER *cipher) { in SSL_CIPHER_has_SHA1_HMAC() argument
1388 return (cipher->algorithm_mac & SSL_SHA1) != 0; in SSL_CIPHER_has_SHA1_HMAC()
1391 int SSL_CIPHER_has_SHA256_HMAC(const SSL_CIPHER *cipher) { in SSL_CIPHER_has_SHA256_HMAC() argument
1392 return (cipher->algorithm_mac & SSL_SHA256) != 0; in SSL_CIPHER_has_SHA256_HMAC()
1395 int SSL_CIPHER_has_SHA384_HMAC(const SSL_CIPHER *cipher) { in SSL_CIPHER_has_SHA384_HMAC() argument
1396 return (cipher->algorithm_mac & SSL_SHA384) != 0; in SSL_CIPHER_has_SHA384_HMAC()
1399 int SSL_CIPHER_is_AEAD(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AEAD() argument
1400 return (cipher->algorithm_mac & SSL_AEAD) != 0; in SSL_CIPHER_is_AEAD()
1403 int SSL_CIPHER_is_AESGCM(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AESGCM() argument
1404 return (cipher->algorithm_enc & (SSL_AES128GCM | SSL_AES256GCM)) != 0; in SSL_CIPHER_is_AESGCM()
1407 int SSL_CIPHER_is_AES128GCM(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES128GCM() argument
1408 return (cipher->algorithm_enc & SSL_AES128GCM) != 0; in SSL_CIPHER_is_AES128GCM()
1411 int SSL_CIPHER_is_AES128CBC(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES128CBC() argument
1412 return (cipher->algorithm_enc & SSL_AES128) != 0; in SSL_CIPHER_is_AES128CBC()
1415 int SSL_CIPHER_is_AES256CBC(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES256CBC() argument
1416 return (cipher->algorithm_enc & SSL_AES256) != 0; in SSL_CIPHER_is_AES256CBC()
1419 int SSL_CIPHER_is_CHACHA20POLY1305(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_CHACHA20POLY1305() argument
1420 return (cipher->algorithm_enc & SSL_CHACHA20POLY1305) != 0; in SSL_CIPHER_is_CHACHA20POLY1305()
1423 int SSL_CIPHER_is_NULL(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_NULL() argument
1424 return (cipher->algorithm_enc & SSL_eNULL) != 0; in SSL_CIPHER_is_NULL()
1427 int SSL_CIPHER_is_block_cipher(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_block_cipher() argument
1428 return (cipher->algorithm_enc & SSL_eNULL) == 0 && in SSL_CIPHER_is_block_cipher()
1429 cipher->algorithm_mac != SSL_AEAD; in SSL_CIPHER_is_block_cipher()
1432 int SSL_CIPHER_is_ECDSA(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_ECDSA() argument
1433 return (cipher->algorithm_auth & SSL_aECDSA) != 0; in SSL_CIPHER_is_ECDSA()
1436 int SSL_CIPHER_is_ECDHE(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_ECDHE() argument
1437 return (cipher->algorithm_mkey & SSL_kECDHE) != 0; in SSL_CIPHER_is_ECDHE()
1440 int SSL_CIPHER_is_static_RSA(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_static_RSA() argument
1441 return (cipher->algorithm_mkey & SSL_kRSA) != 0; in SSL_CIPHER_is_static_RSA()
1444 uint16_t SSL_CIPHER_get_min_version(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_min_version() argument
1445 if (cipher->algorithm_mkey == SSL_kGENERIC || in SSL_CIPHER_get_min_version()
1446 cipher->algorithm_auth == SSL_aGENERIC) { in SSL_CIPHER_get_min_version()
1450 if (cipher->algorithm_prf != SSL_HANDSHAKE_MAC_DEFAULT) { in SSL_CIPHER_get_min_version()
1458 uint16_t SSL_CIPHER_get_max_version(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_max_version() argument
1459 if (cipher->algorithm_mkey == SSL_kGENERIC || in SSL_CIPHER_get_max_version()
1460 cipher->algorithm_auth == SSL_aGENERIC) { in SSL_CIPHER_get_max_version()
1467 const char *SSL_CIPHER_get_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_name() argument
1468 if (cipher != NULL) { in SSL_CIPHER_get_name()
1469 return cipher->name; in SSL_CIPHER_get_name()
1475 const char *SSL_CIPHER_standard_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_standard_name() argument
1476 return cipher->standard_name; in SSL_CIPHER_standard_name()
1479 const char *SSL_CIPHER_get_kx_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_kx_name() argument
1480 if (cipher == NULL) { in SSL_CIPHER_get_kx_name()
1484 switch (cipher->algorithm_mkey) { in SSL_CIPHER_get_kx_name()
1489 switch (cipher->algorithm_auth) { in SSL_CIPHER_get_kx_name()
1502 assert(cipher->algorithm_auth == SSL_aPSK); in SSL_CIPHER_get_kx_name()
1506 assert(cipher->algorithm_auth == SSL_aGENERIC); in SSL_CIPHER_get_kx_name()
1515 char *SSL_CIPHER_get_rfc_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_rfc_name() argument
1516 if (cipher == NULL) { in SSL_CIPHER_get_rfc_name()
1520 return OPENSSL_strdup(SSL_CIPHER_standard_name(cipher)); in SSL_CIPHER_get_rfc_name()
1523 int SSL_CIPHER_get_bits(const SSL_CIPHER *cipher, int *out_alg_bits) { in SSL_CIPHER_get_bits() argument
1524 if (cipher == NULL) { in SSL_CIPHER_get_bits()
1529 switch (cipher->algorithm_enc) { in SSL_CIPHER_get_bits()
1565 const char *SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, in SSL_CIPHER_description() argument
1570 alg_mkey = cipher->algorithm_mkey; in SSL_CIPHER_description()
1571 alg_auth = cipher->algorithm_auth; in SSL_CIPHER_description()
1572 alg_enc = cipher->algorithm_enc; in SSL_CIPHER_description()
1573 alg_mac = cipher->algorithm_mac; in SSL_CIPHER_description()
1685 cipher->name, kx, au, enc, mac); in SSL_CIPHER_description()
1689 const char *SSL_CIPHER_get_version(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_version() argument
1714 int ssl_cipher_uses_certificate_auth(const SSL_CIPHER *cipher) { in ssl_cipher_uses_certificate_auth() argument
1715 return (cipher->algorithm_auth & SSL_aCERT) != 0; in ssl_cipher_uses_certificate_auth()
1718 int ssl_cipher_requires_server_key_exchange(const SSL_CIPHER *cipher) { in ssl_cipher_requires_server_key_exchange() argument
1720 if (cipher->algorithm_mkey & SSL_kECDHE) { in ssl_cipher_requires_server_key_exchange()
1728 size_t ssl_cipher_get_record_split_len(const SSL_CIPHER *cipher) { in ssl_cipher_get_record_split_len() argument
1730 switch (cipher->algorithm_enc) { in ssl_cipher_get_record_split_len()
1743 assert(cipher->algorithm_mac == SSL_SHA1); in ssl_cipher_get_record_split_len()