Home
last modified time | relevance | path

Searched refs:sig_alg (Results 1 – 25 of 32) sorted by relevance

12

/third_party/mbedtls/tests/scripts/
Dgenerate_tls13_compat_tests.py96 [sig_alg for sig_alg in signature_algorithms if sig_alg not in self._sig_algs])
131 for _, cert, key in map(lambda sig_alg: CERTIFICATES[sig_alg], self._sig_algs):
208 for _, cert, key in map(lambda sig_alg: CERTIFICATES[sig_alg], self._sig_algs):
265 for sig_alg in self._sig_algs:
266 if sig_alg in ('ecdsa_secp256r1_sha256',
269 self.add_named_groups(sig_alg.split('_')[1])
307 def generate_compat_test(server=None, client=None, cipher=None, sig_alg=None, named_group=None): argument
312 client=client, server=server, cipher=cipher, sig_alg=sig_alg, named_group=named_group)
313 server_object = SERVER_CLASSES[server](cipher, sig_alg, named_group)
314 client_object = CLIENT_CLASSES[client](cipher, sig_alg, named_group)
[all …]
/third_party/mbedtls/library/
Dssl_tls13_generic.c192 for( const uint16_t *sig_alg = ssl->conf->tls13_sig_algs; in mbedtls_ssl_tls13_write_sig_alg_ext() local
193 *sig_alg != MBEDTLS_TLS1_3_SIG_NONE; sig_alg++ ) in mbedtls_ssl_tls13_write_sig_alg_ext()
196 MBEDTLS_PUT_UINT16_BE( *sig_alg, p, 0 ); in mbedtls_ssl_tls13_write_sig_alg_ext()
198 MBEDTLS_SSL_DEBUG_MSG( 3, ( "signature scheme [%x]", *sig_alg ) ); in mbedtls_ssl_tls13_write_sig_alg_ext()
297 uint16_t sig_alg ) in ssl_tls13_sig_alg_is_offered() argument
303 if( *tls13_sig_alg == sig_alg ) in ssl_tls13_sig_alg_is_offered()
319 mbedtls_pk_type_t sig_alg; in ssl_tls13_parse_certificate_verify() local
367 sig_alg = MBEDTLS_PK_ECDSA; in ssl_tls13_parse_certificate_verify()
371 sig_alg = MBEDTLS_PK_ECDSA; in ssl_tls13_parse_certificate_verify()
375 sig_alg = MBEDTLS_PK_ECDSA; in ssl_tls13_parse_certificate_verify()
[all …]
Doid.c430 FN_OID_TYPED_FROM_ASN1(oid_sig_alg_t, sig_alg, oid_sig_alg)
433 FN_OID_GET_DESCRIPTOR_ATTR1(mbedtls_oid_get_sig_alg_desc, oid_sig_alg_t, sig_alg, const char *, des…
436 FN_OID_GET_ATTR2(mbedtls_oid_get_sig_alg, oid_sig_alg_t, sig_alg, mbedtls_md_type_t, md_alg, mbedtl…
Dssl_srv.c1919 mbedtls_pk_type_t sig_alg = mbedtls_ssl_get_ciphersuite_sig_alg( ciphersuite_info ); in ssl_parse_client_hello() local
1920 if( sig_alg != MBEDTLS_PK_NONE ) in ssl_parse_client_hello()
1923 sig_alg ); in ssl_parse_client_hello()
1930 "%u - should not happen", (unsigned) sig_alg ) ); in ssl_parse_client_hello()
3117 mbedtls_pk_type_t sig_alg = in ssl_prepare_server_key_exchange() local
3123 if( sig_alg == MBEDTLS_PK_NONE || in ssl_prepare_server_key_exchange()
3125 sig_alg ) ) == MBEDTLS_MD_NONE ) in ssl_prepare_server_key_exchange()
3189 mbedtls_ssl_sig_from_pk_alg( sig_alg ); in ssl_prepare_server_key_exchange()
Dssl_misc.h1044 mbedtls_pk_type_t sig_alg );
1047 mbedtls_pk_type_t sig_alg,
/third_party/openssl/crypto/x509/
Dt_crl.c44 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()
Dx_all.c33 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 …]
Dt_req.c198 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()
Dx_x509.c134 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()
Dx509_req.c303 *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()
Dx509cset.c127 *palg = &crl->sig_alg; in X509_CRL_get0_signature()
132 return OBJ_obj2nid(crl->sig_alg.algorithm); in X509_CRL_get_signature_nid()
Dx509_set.c138 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()
Dx_crl.c69 ASN1_EMBED(X509_CRL_INFO, sig_alg, X509_ALGOR),
326 ASN1_EMBED(X509_CRL, sig_alg, X509_ALGOR),
401 &crl->sig_alg, &crl->signature, &crl->crl, NULL, in def_crl_verify()
Dt_x509.c208 const X509_ALGOR *sig_alg; in X509_print_ex() local
210 X509_get0_signature(&sig, &sig_alg, x); in X509_print_ex()
211 if (X509_signature_print(bp, sig_alg, sig) <= 0) in X509_print_ex()
Dx_req.c123 ASN1_EMBED(X509_REQ, sig_alg, X509_ALGOR),
/third_party/openssl/doc/man3/
DASN1_item_sign.pod106 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/
Dx509.h72 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/openssl/include/crypto/
Dx509.h78 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/
Dct_sct.c129 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()
Dct_oct.c49 sct->sig_alg = *p++; in o2i_SCT_signature()
189 *p++ = sct->sig_alg; in i2o_SCT_signature()
Dct_local.h74 unsigned char sig_alg; member
Dct_prn.c24 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); in SCT_signature_algorithms_print()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Dx509.rs42 sig_alg: *mut X509_ALGOR,
69 sig_alg: *mut X509_ALGOR,
105 sig_alg: *mut c_void,
Dtypes.rs262 pub sig_alg: *mut X509_ALGOR,
288 pub sig_alg: *mut X509_ALGOR,
/third_party/openssl/ssl/
Dt1_lib.c2421 int sig_alg = NID_undef, hash_alg = NID_undef; in sig_cb() local
2455 get_sigorhash(&sig_alg, &hash_alg, etmp); in sig_cb()
2456 get_sigorhash(&sig_alg, &hash_alg, p); in sig_cb()
2457 if (sig_alg == NID_undef || hash_alg == NID_undef) in sig_cb()
2461 if (s->hash == hash_alg && s->sig == sig_alg) { in sig_cb()

12