Home
last modified time | relevance | path

Searched refs:hash_type (Results 1 – 19 of 19) 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.c284 enum lws_genhash_types hash_type, const uint8_t *sig, argument
287 int n = lws_gencrypto_openssl_hash_to_NID(hash_type),
288 h = (int)lws_genhash_size(hash_type);
299 md = lws_gencrypto_openssl_hash_to_EVP_MD(hash_type);
327 enum lws_genhash_types hash_type, uint8_t *sig, argument
330 int n = lws_gencrypto_openssl_hash_to_NID(hash_type),
331 h = (int)lws_genhash_size(hash_type);
350 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.c430 enum lws_genhash_types hash_type,
433 const EVP_MD *md = lws_gencrypto_openssl_hash_to_EVP_MD(hash_type);
476 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sign_jws() argument
519 ecdsasig = ECDSA_do_sign(in, (int)lws_genhash_size(hash_type), eckey); in lws_genecdsa_hash_sign_jws()
558 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sig_verify_jws() argument
562 hlen = (int)lws_genhash_size(hash_type); in lws_genecdsa_hash_sig_verify_jws()
/external/libwebsockets/lib/tls/mbedtls/
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-genrsa.c318 enum lws_genhash_types hash_type, const uint8_t *sig, in lws_genrsa_hash_sig_verify() argument
321 int n, h = lws_gencrypto_mbedtls_hash_to_MD_TYPE(hash_type); in lws_genrsa_hash_sig_verify()
353 enum lws_genhash_types hash_type, uint8_t *sig, in lws_genrsa_hash_sign() argument
356 int n, h = lws_gencrypto_mbedtls_hash_to_MD_TYPE(hash_type); in lws_genrsa_hash_sign()
Dlws-genec.c382 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sign_jws() argument
386 size_t hlen = lws_genhash_size(hash_type); in lws_genecdsa_hash_sign_jws()
444 enum lws_genhash_types hash_type, int keybits, in lws_genecdsa_hash_sig_verify_jws() argument
448 size_t hlen = lws_genhash_size(hash_type); in lws_genecdsa_hash_sig_verify_jws()
Dprivate-lib-tls-mbedtls.h34 lws_gencrypto_mbedtls_hash_to_MD_TYPE(enum lws_genhash_types hash_type);
/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 = lws_genhash_size(jose.alg->hash_type); in lws_jws_sig_confirm()
647 jose.alg->hash_type, in lws_jws_sig_confirm()
751 if (jose->alg->hash_type == LWS_GENHASH_TYPE_UNKNOWN && in lws_jws_sign_from_b64()
756 if (lws_genhash_init(&hash_ctx, jose->alg->hash_type) || in lws_jws_sign_from_b64()
790 n = lws_genrsa_hash_sign(&rsactx, digest, jose->alg->hash_type, in lws_jws_sign_from_b64()
810 lws_genhash_size(jose->alg->hash_type), in lws_jws_sign_from_b64()
854 jose->alg->hash_type, in lws_jws_sign_from_b64()
/external/python/cryptography/tests/hazmat/primitives/
Dtest_ec.py42 def _skip_ecdsa_vector(backend, curve_type, hash_type): argument
44 ec.ECDSA(hash_type()),
49 hash_type().name, curve_type().name
289 def test_with_numbers(self, backend, vector, hash_type): argument
292 _skip_ecdsa_vector(backend, curve_type, hash_type)
324 def test_signing_with_example_keys(self, backend, vector, hash_type): argument
327 _skip_ecdsa_vector(backend, curve_type, hash_type)
343 signer = key.signer(ec.ECDSA(hash_type()))
348 verifier = pkey.verifier(signature, ec.ECDSA(hash_type()))
492 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.h207 enum lws_genhash_types hash_type,
228 enum lws_genhash_types hash_type,
Dlws-jose.h81 enum lws_genhash_types hash_type; member
/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-writer.cc115 {return hash_type(t);} in operator ()()
Dabg-ir.cc23512 result = hash_type(t); in hash_type_or_decl()
23584 hash_type(const type_base *t) in hash_type() function
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djws.c496 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES256()
657 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES512()
/external/libabigail/include/
Dabg-fwd.h1341 hash_type(const type_base *t);
/external/libabigail/
DChangeLog665 (hash_type_or_decl): Use hash_type for types.
666 * src/abg-writer.cc (type_hasher::operator()): Use hash_type.
5397 * include/abg-fwd.h (hash_type): Declare new function.
5398 * src/abg-ir.cc (hash_type): Define new function.
5400 hash_type rather than the old hash_type_or_decl.