Home
last modified time | relevance | path

Searched refs:alg (Results 26 - 50 of 1227) sorted by relevance

12345678910>>...50

/third_party/mbedtls/tests/src/drivers/
H A Dtest_driver_signature.c45 psa_algorithm_t alg, in sign_hash()
53 if (PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || in sign_hash()
54 PSA_ALG_IS_RSA_PSS(alg)) { in sign_hash()
61 alg, hash, hash_length, in sign_hash()
68 alg, hash, hash_length, in sign_hash()
75 if (PSA_ALG_IS_ECDSA(alg)) { in sign_hash()
82 alg, hash, hash_length, in sign_hash()
89 alg, hash, hash_length, in sign_hash()
100 (void) alg; in sign_hash()
113 psa_algorithm_t alg, in verify_hash()
41 sign_hash( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length) sign_hash() argument
109 verify_hash( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) verify_hash() argument
175 mbedtls_test_transparent_signature_sign_message( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *signature, size_t signature_size, size_t *signature_length) mbedtls_test_transparent_signature_sign_message() argument
231 mbedtls_test_opaque_signature_sign_message( const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *signature, size_t signature_size, size_t *signature_length) mbedtls_test_opaque_signature_sign_message() argument
255 mbedtls_test_transparent_signature_verify_message( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *signature, size_t signature_length) mbedtls_test_transparent_signature_verify_message() argument
298 mbedtls_test_opaque_signature_verify_message( const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *signature, size_t signature_length) mbedtls_test_opaque_signature_verify_message() argument
320 mbedtls_test_transparent_signature_sign_hash( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length) mbedtls_test_transparent_signature_sign_hash() argument
348 mbedtls_test_opaque_signature_sign_hash( const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length) mbedtls_test_opaque_signature_sign_hash() argument
368 mbedtls_test_transparent_signature_verify_hash( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) mbedtls_test_transparent_signature_verify_hash() argument
386 mbedtls_test_opaque_signature_verify_hash( const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) mbedtls_test_opaque_signature_verify_hash() argument
[all...]
/base/security/huks/frameworks/huks_standard/main/common/src/
H A Dhks_check_paramset.c327 const struct HksParamSet *paramSet, const uint32_t *expectAlg, uint32_t expectCnt, uint32_t *alg) in CheckAndGetAlgorithm()
336 "alg value %" LOG_PUBLIC "u not expected", algParam->uint32Param) in CheckAndGetAlgorithm()
338 *alg = algParam->uint32Param; in CheckAndGetAlgorithm()
359 static int32_t CheckGenKeyParamsByAlg(uint32_t alg, const struct HksParamSet *paramSet, in CheckGenKeyParamsByAlg() argument
362 int32_t ret = HksGetInputParmasByAlg(alg, HKS_CHECK_TYPE_GEN_KEY, paramSet, params); in CheckGenKeyParamsByAlg()
366 ret = HksCheckFixedParams(alg, HKS_CHECK_TYPE_GEN_KEY, params); in CheckGenKeyParamsByAlg()
369 ret = HksCheckGenKeyPurpose(alg, params->purpose.value, keyFlag); in CheckGenKeyParamsByAlg()
372 return HksCheckGenKeyMutableParams(alg, params); in CheckGenKeyParamsByAlg()
376 uint32_t alg, uint32_t inputPurpose, const struct HksParamSet *paramSet, struct ParamsValues *params, in CheckGenKeyMacDeriveParams()
379 if (alg ! in CheckGenKeyMacDeriveParams()
326 CheckAndGetAlgorithm( const struct HksParamSet *paramSet, const uint32_t *expectAlg, uint32_t expectCnt, uint32_t *alg) CheckAndGetAlgorithm() argument
375 CheckGenKeyMacDeriveParams( uint32_t alg, uint32_t inputPurpose, const struct HksParamSet *paramSet, struct ParamsValues *params, uint32_t keyFlag) CheckGenKeyMacDeriveParams() argument
407 uint32_t alg; CoreCheckGenKeyParams() local
435 CheckImportKeySize(uint32_t alg, const struct ParamsValues *params, const struct HksBlob *key) CheckImportKeySize() argument
480 CheckSignVerifyParamsByAlg(uint32_t cmdId, uint32_t alg, const struct ParamsValues *inputParams) CheckSignVerifyParamsByAlg() argument
493 CheckCipherParamsByAlg( uint32_t cmdId, uint32_t alg, const struct HksParamSet *paramSet, const struct ParamsValues *inputParams) CheckCipherParamsByAlg() argument
545 CheckRsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckRsaKeyLen() argument
576 CheckEccKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckEccKeyLen() argument
614 CheckDsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckDsaKeyLen() argument
656 CheckCurve25519KeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckCurve25519KeyLen() argument
695 CheckDHKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckDHKeyLen() argument
733 CheckKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckKeyLen() argument
754 CheckMutableParams(uint32_t alg, uint32_t keyType, const struct ParamsValues *params) CheckMutableParams() argument
791 CheckImportKey(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, const struct HksBlob *key) CheckImportKey() argument
821 uint32_t alg; HksCoreCheckImportKeyParams() local
883 uint32_t alg; HksCoreCheckImportWrappedKeyParams() local
895 uint32_t alg; HksCoreCheckSignVerifyParams() local
931 uint32_t alg; HksLocalCheckSignVerifyParams() local
961 uint32_t alg; HksCoreCheckAgreeKeyParams() local
1005 uint32_t alg; HksCoreCheckCipherParams() local
1033 uint32_t alg; HksLocalCheckCipherParams() local
1085 uint32_t alg; HksCoreCheckDeriveKeyParams() local
1169 CheckIsSymmetricAlgorithm(uint32_t alg) CheckIsSymmetricAlgorithm() argument
[all...]
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
H A Dhks_core_service_three_stage.h34 uint32_t alg);
37 const struct HksBlob *srcData, struct HksBlob *signature, uint32_t alg);
40 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg);
43 uint32_t alg);
46 uint32_t alg);
49 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg);
52 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg);
55 uint32_t alg);
58 const struct HksBlob *inData, struct HksBlob *outData, uint32_t alg);
61 uint32_t alg);
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dshash.c24 static inline struct crypto_istat_hash *shash_get_stat(struct shash_alg *alg) in shash_get_stat() argument
26 return hash_get_stat(&alg->halg); in shash_get_stat()
29 static inline int crypto_shash_errstat(struct shash_alg *alg, int err) in crypto_shash_errstat() argument
31 return crypto_hash_errstat(&alg->halg, err); in crypto_shash_errstat()
62 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() argument
64 if (crypto_shash_alg_needs_key(alg)) in shash_set_needkey()
412 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async() local
434 if (crypto_shash_alg_has_setkey(alg)) in crypto_init_shash_ops_async()
469 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_exit_tfm() local
471 alg in crypto_shash_exit_tfm()
477 struct shash_alg *alg = crypto_shash_alg(hash); crypto_shash_init_tfm() local
511 crypto_shash_report( struct sk_buff *skb, struct crypto_alg *alg) crypto_shash_report() argument
529 crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) crypto_shash_show() argument
538 crypto_shash_report_stat( struct sk_buff *skb, struct crypto_alg *alg) crypto_shash_report_stat() argument
588 struct shash_alg *alg = crypto_shash_alg(hash); crypto_clone_shash() local
621 hash_prepare_alg(struct hash_alg_common *alg) hash_prepare_alg() argument
637 shash_prepare_alg(struct shash_alg *alg) shash_prepare_alg() argument
673 crypto_register_shash(struct shash_alg *alg) crypto_register_shash() argument
686 crypto_unregister_shash(struct shash_alg *alg) crypto_unregister_shash() argument
[all...]
H A Dproc.c39 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); in c_show() local
41 seq_printf(m, "name : %s\n", alg->cra_name); in c_show()
42 seq_printf(m, "driver : %s\n", alg->cra_driver_name); in c_show()
43 seq_printf(m, "module : %s\n", module_name(alg->cra_module)); in c_show()
44 seq_printf(m, "priority : %d\n", alg->cra_priority); in c_show()
45 seq_printf(m, "refcnt : %u\n", refcount_read(&alg->cra_refcnt)); in c_show()
47 (alg->cra_flags & CRYPTO_ALG_TESTED) ? in c_show()
50 (alg->cra_flags & CRYPTO_ALG_INTERNAL) ? in c_show()
54 (alg->cra_flags & CRYPTO_ALG_FIPS_INTERNAL) ? in c_show()
58 if (alg in c_show()
[all...]
H A Dahash.c158 const struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in ahash_set_needkey() local
161 !(alg->base.cra_flags & CRYPTO_ALG_OPTIONAL_KEY)) in ahash_set_needkey()
305 struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in crypto_ahash_final() local
308 atomic64_inc(&hash_get_stat(alg)->hash_cnt); in crypto_ahash_final()
317 struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in crypto_ahash_finup() local
320 struct crypto_istat_hash *istat = hash_get_stat(alg); in crypto_ahash_finup()
333 struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in crypto_ahash_digest() local
336 struct crypto_istat_hash *istat = hash_get_stat(alg); in crypto_ahash_digest()
343 return crypto_hash_errstat(alg, -ENOKEY); in crypto_ahash_digest()
417 struct ahash_alg *alg in crypto_ahash_exit_tfm() local
425 struct ahash_alg *alg = crypto_ahash_alg(hash); crypto_ahash_init_tfm() local
453 crypto_ahash_extsize(struct crypto_alg *alg) crypto_ahash_extsize() argument
468 crypto_ahash_report( struct sk_buff *skb, struct crypto_alg *alg) crypto_ahash_report() argument
485 crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) crypto_ahash_show() argument
495 crypto_ahash_report_stat( struct sk_buff *skb, struct crypto_alg *alg) crypto_ahash_report_stat() argument
547 struct ahash_alg *alg; crypto_clone_ahash() local
594 ahash_prepare_alg(struct ahash_alg *alg) ahash_prepare_alg() argument
612 crypto_register_ahash(struct ahash_alg *alg) crypto_register_ahash() argument
625 crypto_unregister_ahash(struct ahash_alg *alg) crypto_unregister_ahash() argument
678 struct crypto_alg *alg = &halg->base; crypto_hash_alg_has_setkey() local
[all...]
H A Dkpp.c21 struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report()
32 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg)
35 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_kpp_show() argument
43 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_exit_tfm() local
45 alg->exit(kpp); in crypto_kpp_exit_tfm()
51 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_init_tfm() local
53 if (alg->exit) in crypto_kpp_init_tfm()
56 if (alg->init) in crypto_kpp_init_tfm()
57 return alg->init(kpp); in crypto_kpp_init_tfm()
70 struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report_stat()
20 crypto_kpp_report( struct sk_buff *skb, struct crypto_alg *alg) crypto_kpp_report() argument
69 crypto_kpp_report_stat( struct sk_buff *skb, struct crypto_alg *alg) crypto_kpp_report_stat() argument
132 kpp_prepare_alg(struct kpp_alg *alg) kpp_prepare_alg() argument
145 crypto_register_kpp(struct kpp_alg *alg) crypto_register_kpp() argument
154 crypto_unregister_kpp(struct kpp_alg *alg) crypto_unregister_kpp() argument
[all...]
H A Dakcipher.c24 struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report()
36 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
39 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show() argument
47 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
49 alg->exit(akcipher); in crypto_akcipher_exit_tfm()
55 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
57 if (alg->exit) in crypto_akcipher_init_tfm()
60 if (alg->init) in crypto_akcipher_init_tfm()
61 return alg->init(akcipher); in crypto_akcipher_init_tfm()
74 struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report_stat()
23 crypto_akcipher_report( struct sk_buff *skb, struct crypto_alg *alg) crypto_akcipher_report() argument
73 crypto_akcipher_report_stat( struct sk_buff *skb, struct crypto_alg *alg) crypto_akcipher_report_stat() argument
132 akcipher_prepare_alg(struct akcipher_alg *alg) akcipher_prepare_alg() argument
156 crypto_register_akcipher(struct akcipher_alg *alg) crypto_register_akcipher() argument
176 crypto_unregister_akcipher(struct akcipher_alg *alg) crypto_unregister_akcipher() argument
[all...]
H A Dgeniv.c46 struct aead_alg *alg; in aead_geniv_alloc() local
67 alg = crypto_spawn_aead_alg(spawn); in aead_geniv_alloc()
69 ivsize = crypto_aead_alg_ivsize(alg); in aead_geniv_alloc()
70 maxauthsize = crypto_aead_alg_maxauthsize(alg); in aead_geniv_alloc()
77 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
78 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc()
81 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
82 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
86 inst->alg.base.cra_priority = alg in aead_geniv_alloc()
[all...]
/third_party/node/deps/openssl/openssl/crypto/property/
H A Dproperty.c106 ALGORITHM *alg);
224 static void impl_cache_flush_alg(ossl_uintmax_t idx, ALGORITHM *alg) in impl_cache_flush_alg() argument
226 lh_QUERY_doall(alg->cache, &impl_cache_free); in impl_cache_flush_alg()
227 lh_QUERY_flush(alg->cache); in impl_cache_flush_alg()
292 static int ossl_method_store_insert(OSSL_METHOD_STORE *store, ALGORITHM *alg) in ossl_method_store_insert() argument
294 return ossl_sa_ALGORITHM_set(store->algs, alg->nid, alg); in ossl_method_store_insert()
302 ALGORITHM *alg = NULL; in ossl_method_store_add() local
345 alg = ossl_method_store_retrieve(store, nid); in ossl_method_store_add()
346 if (alg in ossl_method_store_add()
382 ALGORITHM *alg = NULL; ossl_method_store_remove() local
422 alg_cleanup_by_provider(ossl_uintmax_t idx, ALGORITHM *alg, void *arg) alg_cleanup_by_provider() argument
465 alg_do_one(ALGORITHM *alg, IMPLEMENTATION *impl, void (*fn)(int id, void *method, void *fnarg), void *fnarg) alg_do_one() argument
477 alg_do_each(ossl_uintmax_t idx, ALGORITHM *alg, void *arg) alg_do_each() argument
506 ALGORITHM *alg; ossl_method_store_fetch() local
584 ossl_method_cache_flush_alg(OSSL_METHOD_STORE *store, ALGORITHM *alg) ossl_method_cache_flush_alg() argument
593 ALGORITHM *alg = ossl_method_store_retrieve(store, nid); ossl_method_cache_flush() local
650 impl_cache_flush_one_alg(ossl_uintmax_t idx, ALGORITHM *alg, void *v) impl_cache_flush_one_alg() argument
683 ALGORITHM *alg; ossl_method_store_cache_get() local
716 ALGORITHM *alg; ossl_method_store_cache_set() local
[all...]
/kernel/linux/linux-6.6/include/crypto/
H A Dakcipher.h167 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg) in __crypto_akcipher_alg() argument
169 return container_of(alg, struct akcipher_alg, base); in __crypto_akcipher_alg()
300 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_maxsize() local
302 return alg->max_size(tfm); in crypto_akcipher_maxsize()
306 struct akcipher_alg *alg) in akcipher_get_stat()
309 return &alg->stat; in akcipher_get_stat()
315 static inline int crypto_akcipher_errstat(struct akcipher_alg *alg, int err) in crypto_akcipher_errstat() argument
321 atomic64_inc(&akcipher_get_stat(alg)->err_cnt); in crypto_akcipher_errstat()
339 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_encrypt() local
342 struct crypto_istat_akcipher *istat = akcipher_get_stat(alg); in crypto_akcipher_encrypt()
305 akcipher_get_stat( struct akcipher_alg *alg) akcipher_get_stat() argument
364 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); crypto_akcipher_decrypt() local
425 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); crypto_akcipher_sign() local
450 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); crypto_akcipher_verify() local
475 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); crypto_akcipher_set_pub_key() local
497 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); crypto_akcipher_set_priv_key() local
[all...]
H A Dkpp.h138 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg() argument
140 return container_of(alg, struct kpp_alg, base); in __crypto_kpp_alg()
294 static inline struct crypto_istat_kpp *kpp_get_stat(struct kpp_alg *alg) in kpp_get_stat() argument
297 return &alg->stat; in kpp_get_stat()
303 static inline int crypto_kpp_errstat(struct kpp_alg *alg, int err) in crypto_kpp_errstat() argument
309 atomic64_inc(&kpp_get_stat(alg)->err_cnt); in crypto_kpp_errstat()
317 * Function invokes the specific kpp operation for a given alg.
332 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_set_secret() local
335 atomic64_inc(&kpp_get_stat(alg)->setsecret_cnt); in crypto_kpp_set_secret()
337 return crypto_kpp_errstat(alg, al in crypto_kpp_set_secret()
356 struct kpp_alg *alg = crypto_kpp_alg(tfm); crypto_kpp_generate_public_key() local
377 struct kpp_alg *alg = crypto_kpp_alg(tfm); crypto_kpp_compute_shared_secret() local
397 struct kpp_alg *alg = crypto_kpp_alg(tfm); crypto_kpp_maxsize() local
[all...]
/kernel/linux/linux-5.10/crypto/
H A Daead.c85 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_encrypt() local
89 crypto_stats_get(alg); in crypto_aead_encrypt()
94 crypto_stats_aead_encrypt(cryptlen, alg, ret); in crypto_aead_encrypt()
102 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_decrypt() local
106 crypto_stats_get(alg); in crypto_aead_decrypt()
113 crypto_stats_aead_decrypt(cryptlen, alg, ret); in crypto_aead_decrypt()
121 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() local
123 alg->exit(aead); in crypto_aead_exit_tfm()
129 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() local
133 aead->authsize = alg in crypto_aead_init_tfm()
145 crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_aead_report() argument
162 crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_aead_report() argument
170 crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) crypto_aead_show() argument
219 aead_prepare_alg(struct aead_alg *alg) aead_prepare_alg() argument
237 crypto_register_aead(struct aead_alg *alg) crypto_register_aead() argument
250 crypto_unregister_aead(struct aead_alg *alg) crypto_unregister_aead() argument
[all...]
H A Dacompress.c27 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
38 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
44 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
47 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show() argument
55 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_exit_tfm() local
57 alg->exit(acomp); in crypto_acomp_exit_tfm()
63 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_init_tfm() local
68 acomp->compress = alg->compress; in crypto_acomp_init_tfm()
69 acomp->decompress = alg->decompress; in crypto_acomp_init_tfm()
70 acomp->dst_free = alg in crypto_acomp_init_tfm()
82 crypto_acomp_extsize(struct crypto_alg *alg) crypto_acomp_extsize() argument
150 crypto_register_acomp(struct acomp_alg *alg) crypto_register_acomp() argument
162 crypto_unregister_acomp(struct acomp_alg *alg) crypto_unregister_acomp() argument
[all...]
H A Dahash.c165 const struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in ahash_set_needkey() local
168 !(alg->base.cra_flags & CRYPTO_ALG_OPTIONAL_KEY)) in ahash_set_needkey()
343 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_final() local
347 crypto_stats_get(alg); in crypto_ahash_final()
349 crypto_stats_ahash_final(nbytes, ret, alg); in crypto_ahash_final()
357 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_finup() local
361 crypto_stats_get(alg); in crypto_ahash_finup()
363 crypto_stats_ahash_final(nbytes, ret, alg); in crypto_ahash_finup()
371 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_digest() local
375 crypto_stats_get(alg); in crypto_ahash_digest()
450 struct ahash_alg *alg = crypto_ahash_alg(hash); crypto_ahash_exit_tfm() local
458 struct ahash_alg *alg = crypto_ahash_alg(hash); crypto_ahash_init_tfm() local
484 crypto_ahash_extsize(struct crypto_alg *alg) crypto_ahash_extsize() argument
500 crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_ahash_report() argument
514 crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_ahash_report() argument
522 crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) crypto_ahash_show() argument
568 ahash_prepare_alg(struct ahash_alg *alg) ahash_prepare_alg() argument
584 crypto_register_ahash(struct ahash_alg *alg) crypto_register_ahash() argument
597 crypto_unregister_ahash(struct ahash_alg *alg) crypto_unregister_ahash() argument
650 struct crypto_alg *alg = &halg->base; crypto_hash_alg_has_setkey() local
[all...]
H A Dkpp.c24 static int crypto_kpp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report() argument
35 static int crypto_kpp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report() argument
41 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg)
44 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_kpp_show() argument
52 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_exit_tfm() local
54 alg->exit(kpp); in crypto_kpp_exit_tfm()
60 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_init_tfm() local
62 if (alg->exit) in crypto_kpp_init_tfm()
65 if (alg->init) in crypto_kpp_init_tfm()
66 return alg in crypto_kpp_init_tfm()
90 kpp_prepare_alg(struct kpp_alg *alg) kpp_prepare_alg() argument
99 crypto_register_kpp(struct kpp_alg *alg) crypto_register_kpp() argument
108 crypto_unregister_kpp(struct kpp_alg *alg) crypto_unregister_kpp() argument
[all...]
H A Dgeniv.c46 struct aead_alg *alg; in aead_geniv_alloc() local
67 alg = crypto_spawn_aead_alg(spawn); in aead_geniv_alloc()
69 ivsize = crypto_aead_alg_ivsize(alg); in aead_geniv_alloc()
70 maxauthsize = crypto_aead_alg_maxauthsize(alg); in aead_geniv_alloc()
77 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
78 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc()
81 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in aead_geniv_alloc()
82 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
86 inst->alg.base.cra_priority = alg in aead_geniv_alloc()
[all...]
H A Dshash.c36 bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey() argument
38 return alg->setkey != shash_no_setkey; in crypto_shash_alg_has_setkey()
63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() argument
65 if (crypto_shash_alg_needs_key(alg)) in shash_set_needkey()
380 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async() local
402 if (crypto_shash_alg_has_setkey(alg)) in crypto_init_shash_ops_async()
419 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_exit_tfm() local
421 alg->exit_tfm(hash); in crypto_shash_exit_tfm()
427 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_init_tfm() local
430 hash->descsize = alg in crypto_shash_init_tfm()
462 crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_shash_report() argument
477 crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_shash_report() argument
485 crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) crypto_shash_show() argument
524 shash_prepare_alg(struct shash_alg *alg) shash_prepare_alg() argument
555 crypto_register_shash(struct shash_alg *alg) crypto_register_shash() argument
568 crypto_unregister_shash(struct shash_alg *alg) crypto_unregister_shash() argument
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A Dcipher_cts.h13 #define IMPLEMENT_cts_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
16 static int alg##_cts_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
21 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_cts_functions[] = { \
23 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
24 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
25 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
26 { OSSL_FUNC_CIPHER_ENCRYPT_INIT, (void (*)(void)) alg##_cbc_cts_einit }, \
27 { OSSL_FUNC_CIPHER_DECRYPT_INIT, (void (*)(void)) alg##_cbc_cts_dinit }, \
34 (void (*)(void)) alg##_cts
[all...]
/third_party/openssl/providers/implementations/ciphers/
H A Dcipher_cts.h13 #define IMPLEMENT_cts_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
16 static int alg##_cts_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
21 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_cts_functions[] = { \
23 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
24 { OSSL_FUNC_CIPHER_FREECTX, (void (*)(void)) alg##_freectx }, \
25 { OSSL_FUNC_CIPHER_DUPCTX, (void (*)(void)) alg##_dupctx }, \
26 { OSSL_FUNC_CIPHER_ENCRYPT_INIT, (void (*)(void)) alg##_cbc_cts_einit }, \
27 { OSSL_FUNC_CIPHER_DECRYPT_INIT, (void (*)(void)) alg##_cbc_cts_dinit }, \
34 (void (*)(void)) alg##_cts
[all...]
/third_party/mbedtls/library/
H A Dpsa_crypto_mac.c43 hmac->alg = hash_alg; in psa_hmac_setup_internal()
117 psa_algorithm_t hash_alg = hmac->alg; in psa_hmac_finish_internal()
204 psa_algorithm_t alg) in mac_init()
208 operation->alg = alg; in mac_init()
211 if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) { in mac_init()
217 if (PSA_ALG_IS_HMAC(operation->alg)) { in mac_init()
219 operation->ctx.hmac.alg = 0; in mac_init()
236 if (operation->alg == 0) { in mbedtls_psa_mac_abort()
243 if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) in mbedtls_psa_mac_abort()
202 mac_init( mbedtls_psa_mac_operation_t *operation, psa_algorithm_t alg) mac_init() argument
271 psa_mac_setup(mbedtls_psa_mac_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg) psa_mac_setup() argument
319 mbedtls_psa_mac_sign_setup( mbedtls_psa_mac_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg) mbedtls_psa_mac_sign_setup() argument
330 mbedtls_psa_mac_verify_setup( mbedtls_psa_mac_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg) mbedtls_psa_mac_verify_setup() argument
455 mbedtls_psa_mac_compute( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *mac, size_t mac_size, size_t *mac_length) mbedtls_psa_mac_compute() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dcrypto.h493 void (*cra_destroy)(struct crypto_alg *alg);
512 void crypto_stats_init(struct crypto_alg *alg);
513 void crypto_stats_get(struct crypto_alg *alg);
514 void crypto_stats_aead_encrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret);
515 void crypto_stats_aead_decrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret);
516 void crypto_stats_ahash_update(unsigned int nbytes, int ret, struct crypto_alg *alg);
517 void crypto_stats_ahash_final(unsigned int nbytes, int ret, struct crypto_alg *alg);
518 void crypto_stats_akcipher_encrypt(unsigned int src_len, int ret, struct crypto_alg *alg);
519 void crypto_stats_akcipher_decrypt(unsigned int src_len, int ret, struct crypto_alg *alg);
520 void crypto_stats_akcipher_sign(int ret, struct crypto_alg *alg);
532 crypto_stats_init(struct crypto_alg *alg) crypto_stats_init() argument
534 crypto_stats_get(struct crypto_alg *alg) crypto_stats_get() argument
536 crypto_stats_aead_encrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret) crypto_stats_aead_encrypt() argument
538 crypto_stats_aead_decrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret) crypto_stats_aead_decrypt() argument
540 crypto_stats_ahash_update(unsigned int nbytes, int ret, struct crypto_alg *alg) crypto_stats_ahash_update() argument
542 crypto_stats_ahash_final(unsigned int nbytes, int ret, struct crypto_alg *alg) crypto_stats_ahash_final() argument
544 crypto_stats_akcipher_encrypt(unsigned int src_len, int ret, struct crypto_alg *alg) crypto_stats_akcipher_encrypt() argument
546 crypto_stats_akcipher_decrypt(unsigned int src_len, int ret, struct crypto_alg *alg) crypto_stats_akcipher_decrypt() argument
548 crypto_stats_akcipher_sign(int ret, struct crypto_alg *alg) crypto_stats_akcipher_sign() argument
550 crypto_stats_akcipher_verify(int ret, struct crypto_alg *alg) crypto_stats_akcipher_verify() argument
552 crypto_stats_compress(unsigned int slen, int ret, struct crypto_alg *alg) crypto_stats_compress() argument
554 crypto_stats_decompress(unsigned int slen, int ret, struct crypto_alg *alg) crypto_stats_decompress() argument
556 crypto_stats_kpp_set_secret(struct crypto_alg *alg, int ret) crypto_stats_kpp_set_secret() argument
558 crypto_stats_kpp_generate_public_key(struct crypto_alg *alg, int ret) crypto_stats_kpp_generate_public_key() argument
560 crypto_stats_kpp_compute_shared_secret(struct crypto_alg *alg, int ret) crypto_stats_kpp_compute_shared_secret() argument
562 crypto_stats_rng_seed(struct crypto_alg *alg, int ret) crypto_stats_rng_seed() argument
564 crypto_stats_rng_generate(struct crypto_alg *alg, unsigned int dlen, int ret) crypto_stats_rng_generate() argument
566 crypto_stats_skcipher_encrypt(unsigned int cryptlen, int ret, struct crypto_alg *alg) crypto_stats_skcipher_encrypt() argument
568 crypto_stats_skcipher_decrypt(unsigned int cryptlen, int ret, struct crypto_alg *alg) crypto_stats_skcipher_decrypt() argument
[all...]
/third_party/mbedtls/tests/src/
H A Dpsa_exercise_key.c122 psa_algorithm_t alg, in exercise_mac_key()
131 if (alg & PSA_ALG_MAC_AT_LEAST_THIS_LENGTH_FLAG) { in exercise_mac_key()
132 alg = PSA_ALG_TRUNCATED_MAC(alg, PSA_MAC_TRUNCATED_LENGTH(alg)); in exercise_mac_key()
136 status = psa_mac_sign_setup(&operation, key, alg); in exercise_mac_key()
155 status = psa_mac_verify_setup(&operation, key, alg); in exercise_mac_key()
177 psa_algorithm_t alg, in exercise_cipher_key()
194 iv_length = PSA_CIPHER_IV_LENGTH(key_type, alg); in exercise_cipher_key()
197 status = psa_cipher_encrypt_setup(&operation, key, alg); in exercise_cipher_key()
120 exercise_mac_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_mac_key() argument
175 exercise_cipher_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_cipher_key() argument
263 exercise_aead_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_aead_key() argument
326 can_sign_or_verify_message(psa_key_usage_t usage, psa_algorithm_t alg) can_sign_or_verify_message() argument
338 exercise_signature_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_signature_key() argument
439 exercise_asymmetric_encryption_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_asymmetric_encryption_key() argument
486 mbedtls_test_psa_setup_key_derivation_wrap( psa_key_derivation_operation_t *operation, mbedtls_svc_key_id_t key, psa_algorithm_t alg, const unsigned char *input1, size_t input1_length, const unsigned char *input2, size_t input2_length, size_t capacity, int key_destroyable) mbedtls_test_psa_setup_key_derivation_wrap() argument
588 exercise_key_derivation_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_key_derivation_key() argument
683 mbedtls_test_psa_raw_key_agreement_with_self( psa_algorithm_t alg, mbedtls_svc_key_id_t key, int key_destroyable) mbedtls_test_psa_raw_key_agreement_with_self() argument
747 exercise_raw_key_agreement_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_raw_key_agreement_key() argument
766 exercise_key_agreement_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) exercise_key_agreement_key() argument
1119 mbedtls_test_psa_exercise_key(mbedtls_svc_key_id_t key, psa_key_usage_t usage, psa_algorithm_t alg, int key_destroyable) mbedtls_test_psa_exercise_key() argument
1163 mbedtls_test_psa_usage_to_exercise(psa_key_type_t type, psa_algorithm_t alg) mbedtls_test_psa_usage_to_exercise() argument
1197 mbedtls_test_can_exercise_psa_algorithm(psa_algorithm_t alg) mbedtls_test_can_exercise_psa_algorithm() argument
[all...]
/third_party/mbedtls/tests/scripts/
H A Dgenerate_psa_tests.py248 alg: crypto_knowledge.Algorithm,
257 pretty_alg = alg.short_expression()
275 dependencies = psa_information.automatic_dependencies(alg.base_expression, key_type)
286 arguments.append(alg.expression)
297 alg: crypto_knowledge.Algorithm,
301 if alg.can_do(category):
303 for dep in psa_information.automatic_dependencies(alg.base_expression):
304 yield self.make_test_case(alg, category,
309 yield self.make_test_case(alg, category, self.Reason.INVALID)
313 alg
[all...]
/third_party/libwebsockets/lib/cose/
H A Dcose_sign.c55 lws_cose_sign_add(struct lws_cose_sign_context *csc, cose_param_t alg, in lws_cose_sign_add() argument
58 lws_cose_sig_alg_t *si = lws_cose_sign_alg_create(csc->info.cx, ck, alg, in lws_cose_sign_add()
88 lws_cose_sig_alg_t *alg = lws_container_of(p, in lws_cose_sign_hashing() local
91 if (lws_cose_sign_alg_hash(alg, in, in_len)) in lws_cose_sign_hashing()
92 alg->failed = 1; in lws_cose_sign_hashing()
111 lws_cose_sig_alg_t *alg; in lws_cose_sign_payload_chunk() local
129 alg = lws_container_of(csc->algs.head, lws_cose_sig_alg_t, list); in lws_cose_sign_payload_chunk()
131 switch (alg->cose_alg) { in lws_cose_sign_payload_chunk()
207 alg = lws_container_of(csc->algs.head, in lws_cose_sign_payload_chunk()
214 (long long)alg in lws_cose_sign_payload_chunk()
535 lws_cose_sig_alg_t *alg = lws_container_of(p, lws_cose_sign_destroy() local
[all...]

Completed in 18 milliseconds

12345678910>>...50