Home
last modified time | relevance | path

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

/external/libwebsockets/lib/tls/openssl/
Dlws-gencrypto.c36 lws_gencrypto_openssl_hash_to_NID(enum lws_genhash_types hash_type) in lws_gencrypto_openssl_hash_to_NID() argument
40 switch (hash_type) { in lws_gencrypto_openssl_hash_to_NID()
64 lws_gencrypto_openssl_hash_to_EVP_MD(enum lws_genhash_types hash_type) in lws_gencrypto_openssl_hash_to_EVP_MD() argument
68 switch (hash_type) { in lws_gencrypto_openssl_hash_to_EVP_MD()
Dlws-genrsa.c285 enum lws_genhash_types hash_type, const uint8_t *sig, argument
288 int n = lws_gencrypto_openssl_hash_to_NID(hash_type),
289 h = (int)lws_genhash_size(hash_type);
301 md = lws_gencrypto_openssl_hash_to_EVP_MD(hash_type);
329 enum lws_genhash_types hash_type, uint8_t *sig, argument
332 int n = lws_gencrypto_openssl_hash_to_NID(hash_type),
333 h = (int)lws_genhash_size(hash_type);
352 md = lws_gencrypto_openssl_hash_to_EVP_MD(hash_type);
Dprivate-lib-tls-openssl.h52 lws_gencrypto_openssl_hash_to_NID(enum lws_genhash_types hash_type);
55 lws_gencrypto_openssl_hash_to_EVP_MD(enum lws_genhash_types hash_type);
Dlws-genec.c475 enum lws_genhash_types hash_type,
478 const EVP_MD *md = lws_gencrypto_openssl_hash_to_EVP_MD(hash_type);
521 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sign_jws() argument
525 size_t hs = lws_genhash_size(hash_type); in lws_genecdsa_hash_sign_jws()
604 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sig_verify_jws() argument
607 int ret = -1, n, hlen = (int)lws_genhash_size(hash_type), in lws_genecdsa_hash_sig_verify_jws()
/external/libwebsockets/lib/tls/mbedtls/
Dlws-genrsa.c369 enum lws_genhash_types hash_type, const uint8_t *sig, argument
372 int n, h = (int)lws_gencrypto_mbedtls_hash_to_MD_TYPE(hash_type);
389 (unsigned int)lws_genhash_size(hash_type),
399 (unsigned int)lws_genhash_size(hash_type),
416 enum lws_genhash_types hash_type, uint8_t *sig, argument
419 int n, h = (int)lws_gencrypto_mbedtls_hash_to_MD_TYPE(hash_type);
444 (unsigned int)lws_genhash_size(hash_type),
455 (unsigned int)lws_genhash_size(hash_type),
Dlws-gencrypto.c31 lws_gencrypto_mbedtls_hash_to_MD_TYPE(enum lws_genhash_types hash_type) in lws_gencrypto_mbedtls_hash_to_MD_TYPE() argument
35 switch (hash_type) { in lws_gencrypto_mbedtls_hash_to_MD_TYPE()
Dlws-genec.c395 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sign_jws() argument
399 size_t hlen = lws_genhash_size(hash_type); in lws_genecdsa_hash_sign_jws()
457 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sig_verify_jws() argument
461 size_t hlen = lws_genhash_size(hash_type); in lws_genecdsa_hash_sig_verify_jws()
Dprivate-lib-tls-mbedtls.h45 lws_gencrypto_mbedtls_hash_to_MD_TYPE(enum lws_genhash_types hash_type);
/external/python/cryptography/tests/hazmat/primitives/
Dtest_ec.py48 def _skip_ecdsa_vector(backend, curve_type, hash_type): argument
50 ec.ECDSA(hash_type()), curve_type()
54 hash_type().name, curve_type().name
296 def test_with_numbers(self, backend, vector, hash_type): argument
299 _skip_ecdsa_vector(backend, curve_type, hash_type)
332 def test_signing_with_example_keys(self, backend, vector, hash_type): argument
335 _skip_ecdsa_vector(backend, curve_type, hash_type)
349 signer = key.signer(ec.ECDSA(hash_type()))
354 verifier = pkey.verifier(signature, ec.ECDSA(hash_type()))
512 hash_type = _HASH_TYPES[vector["digest_algorithm"]]
[all …]
/external/libwebsockets/include/libwebsockets/
Dlws-genec.h175 enum lws_genhash_types hash_type, int keybits,
198 enum lws_genhash_types hash_type, int keybits,
Dlws-genrsa.h208 enum lws_genhash_types hash_type,
229 enum lws_genhash_types hash_type,
Dlws-jose.h81 enum lws_genhash_types hash_type; member
/external/libwebsockets/lib/jose/jws/
Djws.c499 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type)) in lws_jws_sig_confirm()
529 jose.alg->hash_type, in lws_jws_sig_confirm()
620 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in lws_jws_sig_confirm()
632 h_len = (int)lws_genhash_size(jose.alg->hash_type); in lws_jws_sig_confirm()
647 jose.alg->hash_type, in lws_jws_sig_confirm()
752 if (jose->alg->hash_type == LWS_GENHASH_TYPE_UNKNOWN && in lws_jws_sign_from_b64()
757 if (lws_genhash_init(&hash_ctx, jose->alg->hash_type) || in lws_jws_sign_from_b64()
791 n = lws_genrsa_hash_sign(&rsactx, digest, jose->alg->hash_type, in lws_jws_sign_from_b64()
811 lws_genhash_size(jose->alg->hash_type), in lws_jws_sign_from_b64()
855 jose->alg->hash_type, in lws_jws_sign_from_b64()
/external/libabigail/src/
Dabg-hash.cc334 type_base::hash hash_type; in operator ()() local
339 v = hashing::combine_hashes(v, hash_type(t)); in operator ()()
812 type_decl::hash hash_type; in operator ()() local
816 v = hashing::combine_hashes(v, hash_type(t)); in operator ()()
832 type_base::shared_ptr_hash hash_type; in operator ()() local
837 v = hashing::combine_hashes(v, hash_type(t.get_type())); in operator ()()
895 type_base::dynamic_hash hash_type; in operator ()() local
898 v = hashing::combine_hashes(v, hash_type(t.get_composed_type().get())); in operator ()()
Dabg-ir.cc25125 result = hash_type(t); in hash_type_or_decl()
25197 hash_type(const type_base *t) in hash_type() function
/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/anonymous_tokens/cpp/crypto/
Dcrypto_utils.h126 ProtoHashTypeToEVPDigest(HashType hash_type);
Dcrypto_utils.cc188 const HashType hash_type) { in ProtoHashTypeToEVPDigest() argument
189 switch (hash_type) { in ProtoHashTypeToEVPDigest()
/external/python/cpython3/Lib/test/
Dtest_hashlib.py950 hash_type = type(constructor())
953 with self.subTest(hash_type=hash_type):
955 hash_type.value = False
/external/rust/crates/openssl/src/x509/
Dmod.rs475 pub fn digest(&self, hash_type: MessageDigest) -> Result<DigestBytes, ErrorStack> { in digest()
484 hash_type.as_ptr(), in digest()
495 pub fn fingerprint(&self, hash_type: MessageDigest) -> Result<Vec<u8>, ErrorStack> { in fingerprint()
496 self.digest(hash_type).map(|b| b.to_vec()) in fingerprint()
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djws.c497 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES256()
659 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES512()
/external/cronet/net/cert/pki/
Docsp.cc146 bool AppendHashAsOctetString(const EVP_MD* hash_type, in AppendHashAsOctetString() argument
155 hash_type, nullptr) && in AppendHashAsOctetString()
/external/libabigail/include/
Dabg-fwd.h1376 hash_type(const type_base *t);
/external/rust/beto-rust/nearby/scripts/openssl-patches/
D0001-Apply-Android-changes.patch1020 + pub fn digest(&self, hash_type: MessageDigest) -> Result<DigestBytes, ErrorStack> {
1029 + hash_type.as_ptr(),
1040 + pub fn fingerprint(&self, hash_type: MessageDigest) -> Result<Vec<u8>, ErrorStack> {
1041 + self.digest(hash_type).map(|b| b.to_vec())
/external/libabigail/
DChangeLog4217 (hash_type_or_decl): Use hash_type for types.
4218 * src/abg-writer.cc (type_hasher::operator()): Use hash_type.
8949 * include/abg-fwd.h (hash_type): Declare new function.
8950 * src/abg-ir.cc (hash_type): Define new function.
8952 hash_type rather than the old hash_type_or_decl.
/external/libbpf/.github/actions/build-selftests/
Dvmlinux.h69381 enum netdev_lag_hash hash_type; member