Home
last modified time | relevance | path

Searched refs:digest_name (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/ring/tests/
Decdsa_tests.rs137 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_verify_asn1_test() localVariable
143 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_verify_asn1_test()
149 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_verify_asn1_test()
170 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_verify_fixed_test() localVariable
177 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_verify_fixed_test()
181 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_verify_fixed_test()
241 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_sign_fixed_sign_and_verify_test() localVariable
251 let (signing_alg, verification_alg) = match (curve_name.as_str(), digest_name.as_str()) in signature_ecdsa_sign_fixed_sign_and_verify_test()
262 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_sign_fixed_sign_and_verify_test()
295 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_sign_asn1_test() localVariable
[all …]
Drsa_tests.rs83 let digest_name = test_case.consume_string("Digest"); in test_signature_rsa_pkcs1_sign() localVariable
84 let alg = match digest_name.as_ref() { in test_signature_rsa_pkcs1_sign()
88 _ => panic!("Unsupported digest: {}", digest_name), in test_signature_rsa_pkcs1_sign()
124 let digest_name = test_case.consume_string("Digest"); in test_signature_rsa_pss_sign() localVariable
125 let alg = match digest_name.as_ref() { in test_signature_rsa_pss_sign()
129 _ => panic!("Unsupported digest: {}", digest_name), in test_signature_rsa_pss_sign()
190 let digest_name = test_case.consume_string("Digest"); in test_signature_rsa_pkcs1_verify() localVariable
191 let params: &[_] = match digest_name.as_ref() { in test_signature_rsa_pkcs1_verify()
196 _ => panic!("Unsupported digest: {}", digest_name), in test_signature_rsa_pkcs1_verify()
244 let digest_name = test_case.consume_string("Digest"); in test_signature_rsa_pss_verify() localVariable
[all …]
/external/rust/crates/ring/src/ec/suite_b/ecdsa/
Ddigest_scalar.rs95 let digest_name = test_case.consume_string("Digest"); in test() localVariable
99 let (ops, digest_alg) = match (curve_name.as_str(), digest_name.as_str()) { in test()
105 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in test()
Dsigning.rs528 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_sign_fixed_test() localVariable
536 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_sign_fixed_test()
540 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_sign_fixed_test()
567 let digest_name = test_case.consume_string("Digest"); in signature_ecdsa_sign_asn1_test() localVariable
575 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_sign_asn1_test()
579 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_sign_asn1_test()
/external/rust/crates/ring/src/rsa/
Dpadding.rs532 let digest_name = test_case.consume_string("Digest"); in test_pss_padding_verify() localVariable
533 let alg = match digest_name.as_ref() { in test_pss_padding_verify()
537 _ => panic!("Unsupported digest: {}", digest_name), in test_pss_padding_verify()
571 let digest_name = test_case.consume_string("Digest"); in test_pss_padding_encode() localVariable
572 let alg = match digest_name.as_ref() { in test_pss_padding_encode()
576 _ => panic!("Unsupported digest: {}", digest_name), in test_pss_padding_encode()
/external/python/cpython3/Lib/distutils/command/
Dupload.py137 for digest_name, digest_cons in _FILE_CONTENT_DIGESTS.items():
141 data[digest_name] = digest_cons(content).hexdigest()
/external/python/cpython3/Modules/
D_hashopenssl.c1556 PyObject *digest_name = py_digest_name(HMAC_CTX_get_md(self->ctx)); in _hmac_repr() local
1557 if (digest_name == NULL) { in _hmac_repr()
1561 "<%U HMAC object @ %p>", digest_name, self in _hmac_repr()
1563 Py_DECREF(digest_name); in _hmac_repr()
1674 PyObject *digest_name = py_digest_name(HMAC_CTX_get_md(self->ctx)); in _hashlib_hmac_get_name() local
1675 if (digest_name == NULL) { in _hashlib_hmac_get_name()
1678 PyObject *name = PyUnicode_FromFormat("hmac-%U", digest_name); in _hashlib_hmac_get_name()
1679 Py_DECREF(digest_name); in _hashlib_hmac_get_name()
/external/python/cpython3/Lib/test/
Dtest_hashlib.py994 for digest_name, results in self.pbkdf2_results.items():
995 if digest_name not in supported:
1002 out = pbkdf2(digest_name, password, salt, rounds, dklen)
1004 (digest_name, password, salt, rounds, dklen))
1005 out = pbkdf2(digest_name, memoryview(password),
1008 out = pbkdf2(digest_name, bytearray(password),
1012 out = pbkdf2(digest_name, password, salt, rounds)
1014 (digest_name, password, salt, rounds))
/external/python/cpython2/Lib/test/
Dtest_hashlib.py448 for digest_name, results in self.pbkdf2_results.items():
455 digest_name, password, salt, rounds, dklen)
457 (digest_name, password, salt, rounds, dklen))
/external/python/cryptography/tests/
Dutils.py514 digest_name = "SHA-{0}".format(curve_match.group("sha"))
524 "digest_algorithm": digest_name,
/external/python/pyopenssl/src/OpenSSL/
Dcrypto.py1235 def digest(self, digest_name): argument
1246 digest = _lib.EVP_get_digestbyname(_byte_string(digest_name))