Lines Matching refs:cipher
630 const SSL_CIPHER *cipher; member
750 const SSL_CIPHER *cipher, uint16_t version) { in ssl_cipher_get_evp_aead() argument
755 switch (cipher->algorithm_enc) { in ssl_cipher_get_evp_aead()
779 switch (cipher->algorithm_mac) { in ssl_cipher_get_evp_aead()
801 switch (cipher->algorithm_mac) { in ssl_cipher_get_evp_aead()
823 switch (cipher->algorithm_mac) { in ssl_cipher_get_evp_aead()
849 switch (cipher->algorithm_mac) { in ssl_cipher_get_evp_aead()
867 switch (cipher->algorithm_mac) { in ssl_cipher_get_evp_aead()
957 const SSL_CIPHER *cipher = &kCiphers[i]; in ssl_cipher_collect_ciphers() local
958 if (ssl_method->supports_cipher(cipher)) { in ssl_cipher_collect_ciphers()
959 co_list[co_list_num].cipher = cipher; in ssl_cipher_collect_ciphers()
1042 cp = curr->cipher; in ssl_cipher_apply_rule()
1129 SSL_CIPHER_get_bits(curr->cipher, NULL) > max_strength_bits) { in ssl_cipher_strength_sort()
1130 max_strength_bits = SSL_CIPHER_get_bits(curr->cipher, NULL); in ssl_cipher_strength_sort()
1146 number_uses[SSL_CIPHER_get_bits(curr->cipher, NULL)]++; in ssl_cipher_strength_sort()
1280 const SSL_CIPHER *cipher = &kCiphers[j]; in ssl_cipher_process_rulestr() local
1281 if (rule_equals(cipher->name, buf, buf_len)) { in ssl_cipher_process_rulestr()
1282 cipher_id = cipher->id; in ssl_cipher_process_rulestr()
1501 if (!sk_SSL_CIPHER_push(cipherstack, curr->cipher)) { in STACK_OF()
1559 uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *cipher) { return cipher->id; } in SSL_CIPHER_get_id() argument
1561 uint16_t ssl_cipher_get_value(const SSL_CIPHER *cipher) { in ssl_cipher_get_value() argument
1562 uint32_t id = cipher->id; in ssl_cipher_get_value()
1568 int SSL_CIPHER_is_AES(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES() argument
1569 return (cipher->algorithm_enc & SSL_AES) != 0; in SSL_CIPHER_is_AES()
1572 int SSL_CIPHER_has_MD5_HMAC(const SSL_CIPHER *cipher) { in SSL_CIPHER_has_MD5_HMAC() argument
1573 return (cipher->algorithm_mac & SSL_MD5) != 0; in SSL_CIPHER_has_MD5_HMAC()
1576 int SSL_CIPHER_has_SHA1_HMAC(const SSL_CIPHER *cipher) { in SSL_CIPHER_has_SHA1_HMAC() argument
1577 return (cipher->algorithm_mac & SSL_SHA1) != 0; in SSL_CIPHER_has_SHA1_HMAC()
1580 int SSL_CIPHER_is_AESGCM(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AESGCM() argument
1581 return (cipher->algorithm_enc & (SSL_AES128GCM | SSL_AES256GCM)) != 0; in SSL_CIPHER_is_AESGCM()
1584 int SSL_CIPHER_is_AES128GCM(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES128GCM() argument
1585 return (cipher->algorithm_enc & SSL_AES128GCM) != 0; in SSL_CIPHER_is_AES128GCM()
1588 int SSL_CIPHER_is_AES128CBC(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES128CBC() argument
1589 return (cipher->algorithm_enc & SSL_AES128) != 0; in SSL_CIPHER_is_AES128CBC()
1592 int SSL_CIPHER_is_AES256CBC(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_AES256CBC() argument
1593 return (cipher->algorithm_enc & SSL_AES256) != 0; in SSL_CIPHER_is_AES256CBC()
1596 int SSL_CIPHER_is_CHACHA20POLY1305(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_CHACHA20POLY1305() argument
1597 return (cipher->algorithm_enc & in SSL_CIPHER_is_CHACHA20POLY1305()
1601 int SSL_CIPHER_is_NULL(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_NULL() argument
1602 return (cipher->algorithm_enc & SSL_eNULL) != 0; in SSL_CIPHER_is_NULL()
1605 int SSL_CIPHER_is_RC4(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_RC4() argument
1606 return (cipher->algorithm_enc & SSL_RC4) != 0; in SSL_CIPHER_is_RC4()
1609 int SSL_CIPHER_is_block_cipher(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_block_cipher() argument
1611 return (cipher->algorithm_enc & (SSL_RC4 | SSL_eNULL)) == 0 && in SSL_CIPHER_is_block_cipher()
1612 cipher->algorithm_mac != SSL_AEAD; in SSL_CIPHER_is_block_cipher()
1615 int SSL_CIPHER_is_ECDSA(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_ECDSA() argument
1616 return (cipher->algorithm_auth & SSL_aECDSA) != 0; in SSL_CIPHER_is_ECDSA()
1619 int SSL_CIPHER_is_ECDHE(const SSL_CIPHER *cipher) { in SSL_CIPHER_is_ECDHE() argument
1620 return (cipher->algorithm_mkey & SSL_kECDHE) != 0; in SSL_CIPHER_is_ECDHE()
1623 uint16_t SSL_CIPHER_get_min_version(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_min_version() argument
1624 if (cipher->algorithm_prf != SSL_HANDSHAKE_MAC_DEFAULT) { in SSL_CIPHER_get_min_version()
1633 const char *SSL_CIPHER_get_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_name() argument
1634 if (cipher != NULL) { in SSL_CIPHER_get_name()
1635 return cipher->name; in SSL_CIPHER_get_name()
1641 const char *SSL_CIPHER_get_kx_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_kx_name() argument
1642 if (cipher == NULL) { in SSL_CIPHER_get_kx_name()
1646 switch (cipher->algorithm_mkey) { in SSL_CIPHER_get_kx_name()
1651 switch (cipher->algorithm_auth) { in SSL_CIPHER_get_kx_name()
1660 switch (cipher->algorithm_auth) { in SSL_CIPHER_get_kx_name()
1673 assert(cipher->algorithm_auth == SSL_aPSK); in SSL_CIPHER_get_kx_name()
1682 static const char *ssl_cipher_get_enc_name(const SSL_CIPHER *cipher) { in ssl_cipher_get_enc_name() argument
1683 switch (cipher->algorithm_enc) { in ssl_cipher_get_enc_name()
1706 static const char *ssl_cipher_get_prf_name(const SSL_CIPHER *cipher) { in ssl_cipher_get_prf_name() argument
1707 switch (cipher->algorithm_prf) { in ssl_cipher_get_prf_name()
1711 switch (cipher->algorithm_mac) { in ssl_cipher_get_prf_name()
1727 char *SSL_CIPHER_get_rfc_name(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_rfc_name() argument
1728 if (cipher == NULL) { in SSL_CIPHER_get_rfc_name()
1732 const char *kx_name = SSL_CIPHER_get_kx_name(cipher); in SSL_CIPHER_get_rfc_name()
1733 const char *enc_name = ssl_cipher_get_enc_name(cipher); in SSL_CIPHER_get_rfc_name()
1734 const char *prf_name = ssl_cipher_get_prf_name(cipher); in SSL_CIPHER_get_rfc_name()
1757 int SSL_CIPHER_get_bits(const SSL_CIPHER *cipher, int *out_alg_bits) { in SSL_CIPHER_get_bits() argument
1758 if (cipher == NULL) { in SSL_CIPHER_get_bits()
1763 switch (cipher->algorithm_enc) { in SSL_CIPHER_get_bits()
1803 const char *SSL_CIPHER_description(const SSL_CIPHER *cipher, char *buf, in SSL_CIPHER_description() argument
1809 alg_mkey = cipher->algorithm_mkey; in SSL_CIPHER_description()
1810 alg_auth = cipher->algorithm_auth; in SSL_CIPHER_description()
1811 alg_enc = cipher->algorithm_enc; in SSL_CIPHER_description()
1812 alg_mac = cipher->algorithm_mac; in SSL_CIPHER_description()
1931 BIO_snprintf(buf, len, format, cipher->name, kx, au, enc, mac); in SSL_CIPHER_description()
1935 const char *SSL_CIPHER_get_version(const SSL_CIPHER *cipher) { in SSL_CIPHER_get_version() argument
1945 int ssl_cipher_get_key_type(const SSL_CIPHER *cipher) { in ssl_cipher_get_key_type() argument
1946 uint32_t alg_a = cipher->algorithm_auth; in ssl_cipher_get_key_type()
1957 int ssl_cipher_has_server_public_key(const SSL_CIPHER *cipher) { in ssl_cipher_has_server_public_key() argument
1960 if (cipher->algorithm_auth & SSL_aPSK) { in ssl_cipher_has_server_public_key()
1968 int ssl_cipher_requires_server_key_exchange(const SSL_CIPHER *cipher) { in ssl_cipher_requires_server_key_exchange() argument
1970 if (cipher->algorithm_mkey & SSL_kDHE || cipher->algorithm_mkey & SSL_kECDHE) { in ssl_cipher_requires_server_key_exchange()
1978 size_t ssl_cipher_get_record_split_len(const SSL_CIPHER *cipher) { in ssl_cipher_get_record_split_len() argument
1980 switch (cipher->algorithm_enc) { in ssl_cipher_get_record_split_len()
1993 switch (cipher->algorithm_mac) { in ssl_cipher_get_record_split_len()