Home
last modified time | relevance | path

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

12

/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dec.py21 def _check_signature_algorithm(signature_algorithm): argument
22 if not isinstance(signature_algorithm, ec.ECDSA):
143 def signer(self, signature_algorithm): argument
145 _check_signature_algorithm(signature_algorithm)
146 _check_not_prehashed(signature_algorithm.algorithm)
148 self._backend, self, signature_algorithm.algorithm
220 def sign(self, data, signature_algorithm): argument
221 _check_signature_algorithm(signature_algorithm)
223 self._backend, data, signature_algorithm._algorithm
245 def verifier(self, signature, signature_algorithm): argument
[all …]
Ddsa.py124 def signer(self, signature_algorithm): argument
126 _check_not_prehashed(signature_algorithm)
127 return _DSASignatureContext(self._backend, self, signature_algorithm)
212 def verifier(self, signature, signature_algorithm): argument
216 _check_not_prehashed(signature_algorithm)
218 self._backend, self, signature, signature_algorithm
Dutils.py55 def _check_not_prehashed(signature_algorithm): argument
56 if isinstance(signature_algorithm, Prehashed):
/external/boringssl/src/ssl/
Dtls13_both.cc348 uint16_t signature_algorithm; in tls13_process_certificate_verify() local
349 if (!CBS_get_u16(&body, &signature_algorithm) || in tls13_process_certificate_verify()
358 if (!tls12_check_peer_sigalg(hs, &alert, signature_algorithm)) { in tls13_process_certificate_verify()
362 hs->new_session->peer_signature_algorithm = signature_algorithm; in tls13_process_certificate_verify()
372 if (!ssl_public_key_verify(ssl, signature, signature_algorithm, in tls13_process_certificate_verify()
549 uint16_t signature_algorithm; in tls13_add_certificate_verify() local
550 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in tls13_add_certificate_verify()
559 !CBB_add_u16(&body, signature_algorithm)) { in tls13_add_certificate_verify()
584 hs, sig, &sig_len, max_sig_len, signature_algorithm, msg); in tls13_add_certificate_verify()
Dssl_privkey.cc437 uint16_t signature_algorithm; member
469 if (candidate.signature_algorithm == sigalg) { in SSL_get_signature_algorithm_name()
511 uint16_t signature_algorithm; member
545 (*out)[i / 2] = candidate.signature_algorithm; in parse_sigalg_pairs()
714 (*out)[out_i++] = candidate.signature_algorithm; in parse_sigalgs_list()
745 (*out)[out_i++] = candidate.signature_algorithm; in parse_sigalgs_list()
Dhandshake_client.cc1042 uint16_t signature_algorithm = 0; in do_read_server_key_exchange() local
1044 if (!CBS_get_u16(&server_key_exchange, &signature_algorithm)) { in do_read_server_key_exchange()
1050 if (!tls12_check_peer_sigalg(hs, &alert, signature_algorithm)) { in do_read_server_key_exchange()
1054 hs->new_session->peer_signature_algorithm = signature_algorithm; in do_read_server_key_exchange()
1055 } else if (!tls1_get_legacy_signature_algorithm(&signature_algorithm, in do_read_server_key_exchange()
1087 if (!ssl_public_key_verify(ssl, signature, signature_algorithm, in do_read_server_key_exchange()
1437 uint16_t signature_algorithm; in do_send_client_certificate_verify() local
1438 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in do_send_client_certificate_verify()
1444 if (!CBB_add_u16(&body, signature_algorithm)) { in do_send_client_certificate_verify()
1460 signature_algorithm, in do_send_client_certificate_verify()
Dhandshake_server.cc1050 uint16_t signature_algorithm; in do_send_server_key_exchange() local
1051 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in do_send_server_key_exchange()
1056 if (!CBB_add_u16(&body, signature_algorithm)) { in do_send_server_key_exchange()
1073 signature_algorithm, hs->server_params)) { in do_send_server_key_exchange()
1456 uint16_t signature_algorithm = 0; in do_read_client_certificate_verify() local
1458 if (!CBS_get_u16(&certificate_verify, &signature_algorithm)) { in do_read_client_certificate_verify()
1464 if (!tls12_check_peer_sigalg(hs, &alert, signature_algorithm)) { in do_read_client_certificate_verify()
1468 hs->new_session->peer_signature_algorithm = signature_algorithm; in do_read_client_certificate_verify()
1469 } else if (!tls1_get_legacy_signature_algorithm(&signature_algorithm, in do_read_client_certificate_verify()
1484 if (!ssl_public_key_verify(ssl, signature, signature_algorithm, in do_read_client_certificate_verify()
/external/rust/crates/quiche/deps/boringssl/src/ssl/
Dtls13_both.cc349 uint16_t signature_algorithm; in tls13_process_certificate_verify() local
350 if (!CBS_get_u16(&body, &signature_algorithm) || in tls13_process_certificate_verify()
359 if (!tls12_check_peer_sigalg(hs, &alert, signature_algorithm)) { in tls13_process_certificate_verify()
363 hs->new_session->peer_signature_algorithm = signature_algorithm; in tls13_process_certificate_verify()
373 if (!ssl_public_key_verify(ssl, signature, signature_algorithm, in tls13_process_certificate_verify()
550 uint16_t signature_algorithm; in tls13_add_certificate_verify() local
551 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in tls13_add_certificate_verify()
560 !CBB_add_u16(&body, signature_algorithm)) { in tls13_add_certificate_verify()
585 hs, sig, &sig_len, max_sig_len, signature_algorithm, msg); in tls13_add_certificate_verify()
Dssl_privkey.cc437 uint16_t signature_algorithm; member
469 if (candidate.signature_algorithm == sigalg) { in SSL_get_signature_algorithm_name()
511 uint16_t signature_algorithm; member
545 (*out)[i / 2] = candidate.signature_algorithm; in parse_sigalg_pairs()
714 (*out)[out_i++] = candidate.signature_algorithm; in parse_sigalgs_list()
745 (*out)[out_i++] = candidate.signature_algorithm; in parse_sigalgs_list()
Dhandshake_client.cc1046 uint16_t signature_algorithm = 0; in do_read_server_key_exchange() local
1048 if (!CBS_get_u16(&server_key_exchange, &signature_algorithm)) { in do_read_server_key_exchange()
1054 if (!tls12_check_peer_sigalg(hs, &alert, signature_algorithm)) { in do_read_server_key_exchange()
1058 hs->new_session->peer_signature_algorithm = signature_algorithm; in do_read_server_key_exchange()
1059 } else if (!tls1_get_legacy_signature_algorithm(&signature_algorithm, in do_read_server_key_exchange()
1091 if (!ssl_public_key_verify(ssl, signature, signature_algorithm, in do_read_server_key_exchange()
1441 uint16_t signature_algorithm; in do_send_client_certificate_verify() local
1442 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in do_send_client_certificate_verify()
1448 if (!CBB_add_u16(&body, signature_algorithm)) { in do_send_client_certificate_verify()
1464 signature_algorithm, in do_send_client_certificate_verify()
Dhandshake_server.cc1044 uint16_t signature_algorithm; in do_send_server_key_exchange() local
1045 if (!tls1_choose_signature_algorithm(hs, &signature_algorithm)) { in do_send_server_key_exchange()
1050 if (!CBB_add_u16(&body, signature_algorithm)) { in do_send_server_key_exchange()
1067 signature_algorithm, hs->server_params)) { in do_send_server_key_exchange()
1451 uint16_t signature_algorithm = 0; in do_read_client_certificate_verify() local
1453 if (!CBS_get_u16(&certificate_verify, &signature_algorithm)) { in do_read_client_certificate_verify()
1459 if (!tls12_check_peer_sigalg(hs, &alert, signature_algorithm)) { in do_read_client_certificate_verify()
1463 hs->new_session->peer_signature_algorithm = signature_algorithm; in do_read_client_certificate_verify()
1464 } else if (!tls1_get_legacy_signature_algorithm(&signature_algorithm, in do_read_client_certificate_verify()
1479 if (!ssl_public_key_verify(ssl, signature, signature_algorithm, in do_read_client_certificate_verify()
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Dec.py65 def signer(self, signature_algorithm): argument
96 def sign(self, data, signature_algorithm): argument
120 def verifier(self, signature, signature_algorithm): argument
150 def verify(self, signature, data, signature_algorithm): argument
Ddsa.py53 def signer(self, signature_algorithm): argument
95 def verifier(self, signature, signature_algorithm): argument
/external/libchrome/crypto/
Dsignature_verifier.h49 bool VerifyInit(SignatureAlgorithm signature_algorithm,
/external/avb/
Daftltool893 signature_algorithm=SignatureAlgorithm.RSA, signature=b''): argument
895 self.signature_algorithm = signature_algorithm
913 (hash_algorithm, signature_algorithm) = struct.unpack(
920 signature_algorithm = SignatureAlgorithm(signature_algorithm)
923 signature_algorithm))
925 return Signature(hash_algorithm, signature_algorithm, signature)
939 self.signature_algorithm.value))
1018 signature_algorithm=SignatureAlgorithm.RSA,
Daftltool.py893 signature_algorithm=SignatureAlgorithm.RSA, signature=b''): argument
895 self.signature_algorithm = signature_algorithm
913 (hash_algorithm, signature_algorithm) = struct.unpack(
920 signature_algorithm = SignatureAlgorithm(signature_algorithm)
923 signature_algorithm))
925 return Signature(hash_algorithm, signature_algorithm, signature)
939 self.signature_algorithm.value))
1018 signature_algorithm=SignatureAlgorithm.RSA,
/external/openscreen/cast/receiver/channel/
Ddevice_auth_namespace_handler_unittest.cc115 EXPECT_EQ(expected_auth_response.signature_algorithm(), in TEST_F()
116 auth_response.signature_algorithm()); in TEST_F()
Ddevice_auth_namespace_handler.cc86 const SignatureAlgorithm sig_alg = challenge.signature_algorithm(); in OnMessage()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc227 const char* signature_algorithm, in compute_and_encode_signature() argument
229 const EVP_MD* md = openssl_digest_from_algorithm(signature_algorithm); in compute_and_encode_signature()
/external/openscreen/cast/common/channel/proto/
Dcast_channel.proto90 optional SignatureAlgorithm signature_algorithm = 1 field
100 optional SignatureAlgorithm signature_algorithm = 4 field
/external/avb/libavb_aftl/
Davb_aftl_types.h138 uint8_t signature_algorithm; member
Davb_aftl_util.c468 if (!read_u8(&(signature->signature_algorithm), aftl_blob, blob_end)) { in parse_signature()
472 if (signature->signature_algorithm >= _AVB_AFTL_SIGNATURE_ALGORITHM_NUM) { in parse_signature()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc250 const char* signature_algorithm, in compute_and_encode_signature() argument
252 const EVP_MD* md = openssl_digest_from_algorithm(signature_algorithm); in compute_and_encode_signature()
/external/avb/proto/crypto/sigpb/
Dsigpb.proto54 SignatureAlgorithm signature_algorithm = 2; field
/external/python/cryptography/src/cryptography/hazmat/backends/
Dinterfaces.py187 self, signature_algorithm, curve

12