/third_party/mbedtls/tests/scripts/ |
D | generate_tls13_compat_tests.py | 103 [sig_alg for sig_alg in signature_algorithms if sig_alg not in self._sig_algs]) 113 [sig_alg for sig_alg in signature_algorithms if sig_alg not in self._cert_sig_algs]) 194 for _, cert, key in map(lambda sig_alg: CERTIFICATES[sig_alg], self._cert_sig_algs): 307 for _, cert, key in map(lambda sig_alg: CERTIFICATES[sig_alg], self._cert_sig_algs): 406 for _, cert, key in map(lambda sig_alg: CERTIFICATES[sig_alg], self._cert_sig_algs): 456 def generate_compat_test(client=None, server=None, cipher=None, named_group=None, sig_alg=None): argument 461 client=client, server=server, cipher=cipher[4:], sig_alg=sig_alg, named_group=named_group) 465 signature_algorithm=sig_alg, 466 cert_sig_alg=sig_alg) 469 signature_algorithm=sig_alg, [all …]
|
/third_party/mbedtls/library/ |
D | ssl_misc.h | 1284 unsigned int sig_alg); 2271 const uint16_t *sig_alg = ssl->MBEDTLS_PRIVATE(handshake)->MBEDTLS_PRIVATE(received_sig_algs); in mbedtls_ssl_sig_alg_is_received() local 2272 if (sig_alg == NULL) { in mbedtls_ssl_sig_alg_is_received() 2276 for (; *sig_alg != MBEDTLS_TLS_SIG_NONE; sig_alg++) { in mbedtls_ssl_sig_alg_is_received() 2277 if (*sig_alg == own_sig_alg) { in mbedtls_ssl_sig_alg_is_received() 2285 const uint16_t sig_alg) in mbedtls_ssl_tls13_sig_alg_for_cert_verify_is_supported() argument 2287 switch (sig_alg) { in mbedtls_ssl_tls13_sig_alg_for_cert_verify_is_supported() 2325 const uint16_t sig_alg) in mbedtls_ssl_tls13_sig_alg_is_supported() argument 2327 switch (sig_alg) { in mbedtls_ssl_tls13_sig_alg_is_supported() 2344 sig_alg); in mbedtls_ssl_tls13_sig_alg_is_supported() [all …]
|
D | ssl_tls13_generic.c | 172 mbedtls_pk_type_t sig_alg; in ssl_tls13_parse_certificate_verify() local 216 algorithm, &sig_alg, &md_alg) != 0) { in ssl_tls13_parse_certificate_verify() 231 if (!mbedtls_pk_can_do(&ssl->session_negotiate->peer_cert->pk, sig_alg)) { in ssl_tls13_parse_certificate_verify() 254 if (sig_alg == MBEDTLS_PK_RSASSA_PSS) { in ssl_tls13_parse_certificate_verify() 262 if ((ret = mbedtls_pk_verify_ext(sig_alg, options, in ssl_tls13_parse_certificate_verify() 895 int mbedtls_ssl_tls13_check_sig_alg_cert_key_match(uint16_t sig_alg, in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() argument 906 sig_alg == MBEDTLS_TLS1_3_SIG_ECDSA_SECP256R1_SHA256; in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() 910 sig_alg == MBEDTLS_TLS1_3_SIG_ECDSA_SECP384R1_SHA384; in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() 914 sig_alg == MBEDTLS_TLS1_3_SIG_ECDSA_SECP521R1_SHA512; in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() 921 switch (sig_alg) { in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() [all …]
|
D | ssl_tls13_server.c | 1073 static psa_algorithm_t ssl_tls13_iana_sig_alg_to_psa_alg(uint16_t sig_alg) in ssl_tls13_iana_sig_alg_to_psa_alg() argument 1075 switch (sig_alg) { in ssl_tls13_iana_sig_alg_to_psa_alg() 1108 const uint16_t *sig_alg = ssl->handshake->received_sig_algs; in ssl_tls13_pick_key_cert() local 1122 for (; *sig_alg != MBEDTLS_TLS1_3_SIG_NONE; sig_alg++) { in ssl_tls13_pick_key_cert() 1123 if (!mbedtls_ssl_sig_alg_is_offered(ssl, *sig_alg)) { in ssl_tls13_pick_key_cert() 1127 if (!mbedtls_ssl_tls13_sig_alg_for_cert_verify_is_supported(*sig_alg)) { in ssl_tls13_pick_key_cert() 1157 mbedtls_ssl_sig_alg_to_str(*sig_alg), in ssl_tls13_pick_key_cert() 1158 *sig_alg)); in ssl_tls13_pick_key_cert() 1160 psa_alg = ssl_tls13_iana_sig_alg_to_psa_alg(*sig_alg); in ssl_tls13_pick_key_cert() 1164 *sig_alg, &key_cert->cert->pk) in ssl_tls13_pick_key_cert() [all …]
|
D | ssl_tls12_server.c | 1667 mbedtls_pk_type_t sig_alg = mbedtls_ssl_get_ciphersuite_sig_alg(ciphersuite_info); in ssl_parse_client_hello() local 1668 if (sig_alg != MBEDTLS_PK_NONE) { in ssl_parse_client_hello() 1670 ssl, mbedtls_ssl_sig_from_pk_alg(sig_alg)); in ssl_parse_client_hello() 1675 "%u - should not happen", (unsigned) sig_alg)); in ssl_parse_client_hello() 2463 const uint16_t *sig_alg = mbedtls_ssl_get_sig_algs(ssl); in ssl_write_certificate_request() local 2464 if (sig_alg == NULL) { in ssl_write_certificate_request() 2468 for (; *sig_alg != MBEDTLS_TLS_SIG_NONE; sig_alg++) { in ssl_write_certificate_request() 2469 unsigned char hash = MBEDTLS_BYTE_1(*sig_alg); in ssl_write_certificate_request() 2474 if (!mbedtls_ssl_sig_alg_is_supported(ssl, *sig_alg)) { in ssl_write_certificate_request() 2482 MBEDTLS_PUT_UINT16_BE(*sig_alg, p, sa_len); in ssl_write_certificate_request() [all …]
|
/third_party/openssl/crypto/x509/ |
D | t_crl.c | 44 const X509_ALGOR *sig_alg; in X509_CRL_print_ex() local 55 X509_CRL_get0_signature(x, &sig, &sig_alg); in X509_CRL_print_ex() 57 X509_signature_print(out, sig_alg, NULL); in X509_CRL_print_ex() 90 X509_signature_print(out, sig_alg, sig); in X509_CRL_print_ex()
|
D | x_all.c | 33 if (X509_ALGOR_cmp(&a->sig_alg, &a->cert_info.signature) != 0) in X509_verify() 36 return ASN1_item_verify_ex(ASN1_ITEM_rptr(X509_CINF), &a->sig_alg, in X509_verify() 44 return ASN1_item_verify_ex(ASN1_ITEM_rptr(X509_REQ_INFO), &a->sig_alg, in X509_REQ_verify_ex() 76 &x->sig_alg, &x->signature, &x->cert_info, NULL, in X509_sign() 89 &x->sig_alg, &x->signature, &x->cert_info, ctx); in X509_sign_ctx() 119 return ASN1_item_sign_ex(ASN1_ITEM_rptr(X509_REQ_INFO), &x->sig_alg, NULL, in X509_REQ_sign() 132 &x->sig_alg, NULL, x->signature, &x->req_info, in X509_REQ_sign_ctx() 143 return ASN1_item_sign_ex(ASN1_ITEM_rptr(X509_CRL_INFO), &x->crl.sig_alg, in X509_CRL_sign() 144 &x->sig_alg, &x->signature, &x->crl, NULL, in X509_CRL_sign() 156 &x->crl.sig_alg, &x->sig_alg, &x->signature, in X509_CRL_sign_ctx() [all …]
|
D | t_req.c | 198 const X509_ALGOR *sig_alg; in X509_REQ_print_ex() local 200 X509_REQ_get0_signature(x, &sig, &sig_alg); in X509_REQ_print_ex() 201 if (!X509_signature_print(bp, sig_alg, sig)) in X509_REQ_print_ex()
|
D | x_x509.c | 134 ASN1_EMBED(X509, sig_alg, X509_ALGOR), 301 *palg = &x->sig_alg; in X509_get0_signature() 306 return OBJ_obj2nid(x->sig_alg.algorithm); in X509_get_signature_nid()
|
D | x509_req.c | 303 *palg = &req->sig_alg; in X509_REQ_get0_signature() 315 return X509_ALGOR_copy(&req->sig_alg, palg); in X509_REQ_set1_signature_algo() 320 return OBJ_obj2nid(req->sig_alg.algorithm); in X509_REQ_get_signature_nid()
|
D | x509cset.c | 127 *palg = &crl->sig_alg; in X509_CRL_get0_signature() 132 return OBJ_obj2nid(crl->sig_alg.algorithm); in X509_CRL_get_signature_nid()
|
D | x509_set.c | 138 return EVP_PKEY_type(OBJ_obj2nid(x->sig_alg.algorithm)); in X509_get_signature_type() 275 return x509_sig_info_init(&x->siginf, &x->sig_alg, &x->signature); in ossl_x509_init_sig_info()
|
/third_party/node/deps/openssl/openssl/crypto/x509/ |
D | t_crl.c | 44 const X509_ALGOR *sig_alg; in X509_CRL_print_ex() local 55 X509_CRL_get0_signature(x, &sig, &sig_alg); in X509_CRL_print_ex() 57 X509_signature_print(out, sig_alg, NULL); in X509_CRL_print_ex() 90 X509_signature_print(out, sig_alg, sig); in X509_CRL_print_ex()
|
D | x_all.c | 33 if (X509_ALGOR_cmp(&a->sig_alg, &a->cert_info.signature) != 0) in X509_verify() 36 return ASN1_item_verify_ex(ASN1_ITEM_rptr(X509_CINF), &a->sig_alg, in X509_verify() 44 return ASN1_item_verify_ex(ASN1_ITEM_rptr(X509_REQ_INFO), &a->sig_alg, in X509_REQ_verify_ex() 76 &x->sig_alg, &x->signature, &x->cert_info, NULL, in X509_sign() 89 &x->sig_alg, &x->signature, &x->cert_info, ctx); in X509_sign_ctx() 119 return ASN1_item_sign_ex(ASN1_ITEM_rptr(X509_REQ_INFO), &x->sig_alg, NULL, in X509_REQ_sign() 132 &x->sig_alg, NULL, x->signature, &x->req_info, in X509_REQ_sign_ctx() 143 return ASN1_item_sign_ex(ASN1_ITEM_rptr(X509_CRL_INFO), &x->crl.sig_alg, in X509_CRL_sign() 144 &x->sig_alg, &x->signature, &x->crl, NULL, in X509_CRL_sign() 156 &x->crl.sig_alg, &x->sig_alg, &x->signature, in X509_CRL_sign_ctx() [all …]
|
D | t_req.c | 198 const X509_ALGOR *sig_alg; in X509_REQ_print_ex() local 200 X509_REQ_get0_signature(x, &sig, &sig_alg); in X509_REQ_print_ex() 201 if (!X509_signature_print(bp, sig_alg, sig)) in X509_REQ_print_ex()
|
D | x509_req.c | 303 *palg = &req->sig_alg; in X509_REQ_get0_signature() 315 return X509_ALGOR_copy(&req->sig_alg, palg); in X509_REQ_set1_signature_algo() 320 return OBJ_obj2nid(req->sig_alg.algorithm); in X509_REQ_get_signature_nid()
|
D | x_x509.c | 134 ASN1_EMBED(X509, sig_alg, X509_ALGOR), 301 *palg = &x->sig_alg; in X509_get0_signature() 306 return OBJ_obj2nid(x->sig_alg.algorithm); in X509_get_signature_nid()
|
D | x509cset.c | 127 *palg = &crl->sig_alg; in X509_CRL_get0_signature() 132 return OBJ_obj2nid(crl->sig_alg.algorithm); in X509_CRL_get_signature_nid()
|
D | x509_set.c | 138 return EVP_PKEY_type(OBJ_obj2nid(x->sig_alg.algorithm)); in X509_get_signature_type() 275 return x509_sig_info_init(&x->siginf, &x->sig_alg, &x->signature); in ossl_x509_init_sig_info()
|
/third_party/openssl/doc/man3/ |
D | ASN1_item_sign.pod | 106 X509_ALGOR sig_alg; 117 X509_ALGOR sig_alg; 126 ASN1_EMBED(MySignInfoObject, sig_alg, X509_ALGOR), 135 ASN1_EMBED(MyObject, sig_alg, X509_ALGOR), 170 * obj->sig_alg is filled with the private key's signing algorithm id. 171 * obj->info.sig_alg is another copy of the signing algorithm id that sits 174 len = ASN1_item_sign_ctx(it, &obj->sig_alg, &obj->info.sig_alg, 177 || X509_ALGOR_cmp(&obj->sig_alg, &obj->info.sig_alg) != 0) 197 ret = ASN1_item_verify_ctx(it, &loaded_obj->sig_alg, loaded_obj->signature,
|
/third_party/openssl/ohos_lite/include/crypto/ |
D | x509.h | 72 X509_ALGOR sig_alg; /* signature algorithm */ member 80 X509_ALGOR sig_alg; /* signature algorithm */ member 91 X509_ALGOR sig_alg; /* CRL signature algorithm */ member 162 X509_ALGOR sig_alg; member
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
D | x509.h | 78 X509_ALGOR sig_alg; /* signature algorithm */ member 91 X509_ALGOR sig_alg; /* signature algorithm */ member 102 X509_ALGOR sig_alg; /* CRL signature algorithm */ member 176 X509_ALGOR sig_alg; member
|
/third_party/openssl/include/crypto/ |
D | x509.h | 78 X509_ALGOR sig_alg; /* signature algorithm */ member 91 X509_ALGOR sig_alg; /* signature algorithm */ member 102 X509_ALGOR sig_alg; /* CRL signature algorithm */ member 176 X509_ALGOR sig_alg; member
|
/third_party/openssl/crypto/ct/ |
D | ct_sct.c | 129 sct->sig_alg = TLSEXT_signature_rsa; in SCT_set_signature_nid() 134 sct->sig_alg = TLSEXT_signature_ecdsa; in SCT_set_signature_nid() 220 switch (sct->sig_alg) { in SCT_get_signature_nid()
|
/third_party/node/deps/openssl/openssl/crypto/ct/ |
D | ct_sct.c | 129 sct->sig_alg = TLSEXT_signature_rsa; in SCT_set_signature_nid() 134 sct->sig_alg = TLSEXT_signature_ecdsa; in SCT_set_signature_nid() 220 switch (sct->sig_alg) { in SCT_get_signature_nid()
|