Home
last modified time | relevance | path

Searched refs:signature_algorithm (Results 1 – 10 of 10) sorted by relevance

/external/boringssl/src/ssl/
Dssl_privkey.c524 uint16_t signature_algorithm, const uint8_t *in, size_t in_len) { in ssl_private_key_sign() argument
528 signature_algorithm, in, in_len); in ssl_private_key_sign()
535 if (!is_rsa_pkcs1(&md, signature_algorithm) && in ssl_private_key_sign()
536 !is_ecdsa(&curve, &md, signature_algorithm)) { in ssl_private_key_sign()
552 if (is_rsa_pkcs1(&md, signature_algorithm) && in ssl_private_key_sign()
560 if (is_ecdsa(&curve, &md, signature_algorithm)) { in ssl_private_key_sign()
566 if (is_rsa_pss(&md, signature_algorithm)) { in ssl_private_key_sign()
577 size_t signature_len, uint16_t signature_algorithm, in ssl_public_key_verify() argument
580 if (is_rsa_pkcs1(&md, signature_algorithm) && in ssl_public_key_verify()
587 if (is_ecdsa(&curve, &md, signature_algorithm)) { in ssl_public_key_verify()
[all …]
Dtls13_both.c371 uint16_t signature_algorithm; in tls13_process_certificate_verify() local
373 if (!CBS_get_u16(&cbs, &signature_algorithm) || in tls13_process_certificate_verify()
382 if (!tls12_check_peer_sigalg(ssl, &al, signature_algorithm)) { in tls13_process_certificate_verify()
386 hs->new_session->peer_signature_algorithm = signature_algorithm; in tls13_process_certificate_verify()
397 signature_algorithm, hs->peer_pubkey, msg, msg_len); in tls13_process_certificate_verify()
539 uint16_t signature_algorithm; in tls13_add_certificate_verify() local
540 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in tls13_add_certificate_verify()
545 !CBB_add_u16(&body, signature_algorithm)) { in tls13_add_certificate_verify()
570 signature_algorithm, msg, msg_len); in tls13_add_certificate_verify()
Dssl_transcript.c328 int signature_algorithm) { in SSL_TRANSCRIPT_ssl3_cert_verify_hash() argument
334 if (signature_algorithm == SSL_SIGN_RSA_PKCS1_MD5_SHA1) { in SSL_TRANSCRIPT_ssl3_cert_verify_hash()
346 if (signature_algorithm == SSL_SIGN_ECDSA_SHA1) { in SSL_TRANSCRIPT_ssl3_cert_verify_hash()
Dhandshake_server.c1237 uint16_t signature_algorithm; in ssl3_send_server_key_exchange() local
1238 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in ssl3_send_server_key_exchange()
1242 if (!CBB_add_u16(&body, signature_algorithm)) { in ssl3_send_server_key_exchange()
1279 signature_algorithm, transcript_data, in ssl3_send_server_key_exchange()
1798 uint16_t signature_algorithm = 0; in ssl3_get_cert_verify() local
1800 if (!CBS_get_u16(&certificate_verify, &signature_algorithm)) { in ssl3_get_cert_verify()
1805 if (!tls12_check_peer_sigalg(ssl, &al, signature_algorithm)) { in ssl3_get_cert_verify()
1808 hs->new_session->peer_signature_algorithm = signature_algorithm; in ssl3_get_cert_verify()
1810 signature_algorithm = SSL_SIGN_RSA_PKCS1_MD5_SHA1; in ssl3_get_cert_verify()
1812 signature_algorithm = SSL_SIGN_ECDSA_SHA1; in ssl3_get_cert_verify()
[all …]
Dhandshake_client.c1329 uint16_t signature_algorithm = 0; in ssl3_get_server_key_exchange() local
1331 if (!CBS_get_u16(&server_key_exchange, &signature_algorithm)) { in ssl3_get_server_key_exchange()
1336 if (!tls12_check_peer_sigalg(ssl, &al, signature_algorithm)) { in ssl3_get_server_key_exchange()
1339 hs->new_session->peer_signature_algorithm = signature_algorithm; in ssl3_get_server_key_exchange()
1341 signature_algorithm = SSL_SIGN_RSA_PKCS1_MD5_SHA1; in ssl3_get_server_key_exchange()
1343 signature_algorithm = SSL_SIGN_ECDSA_SHA1; in ssl3_get_server_key_exchange()
1374 ssl, CBS_data(&signature), CBS_len(&signature), signature_algorithm, in ssl3_get_server_key_exchange()
1729 uint16_t signature_algorithm; in ssl3_send_cert_verify() local
1730 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in ssl3_send_cert_verify()
1735 if (!CBB_add_u16(&body, signature_algorithm)) { in ssl3_send_cert_verify()
[all …]
Dinternal.h324 int signature_algorithm); in OPENSSL_MSVC_PRAGMA()
563 uint16_t signature_algorithm, const uint8_t *in, size_t in_len); in OPENSSL_MSVC_PRAGMA()
576 uint16_t signature_algorithm); in OPENSSL_MSVC_PRAGMA()
582 uint16_t signature_algorithm, EVP_PKEY *pkey, in OPENSSL_MSVC_PRAGMA()
/external/libchrome/crypto/
Dsignature_verifier_nss.cc89 bool SignatureVerifier::VerifyInit(SignatureAlgorithm signature_algorithm, in VerifyInit() argument
109 public_key, &sig, ToNSSSignatureType(signature_algorithm), nullptr); in VerifyInit()
Dsignature_verifier.h60 bool VerifyInit(SignatureAlgorithm signature_algorithm,
/external/boringssl/src/ssl/test/
Dbssl_shim.cc308 uint16_t signature_algorithm, const uint8_t *in, size_t in_len) { in AsyncPrivateKeySign() argument
317 switch (signature_algorithm) { in AsyncPrivateKeySign()
342 signature_algorithm); in AsyncPrivateKeySign()
354 switch (signature_algorithm) { in AsyncPrivateKeySign()
/external/boringssl/src/include/openssl/
Dssl.h1101 uint16_t signature_algorithm,