Home
last modified time | relevance | path

Searched refs:alg (Results 301 - 325 of 1138) sorted by relevance

1...<<11121314151617181920>>...46

/third_party/openssl/crypto/cmp/
H A Dcmp_protect.c188 static int set_pbmac_algor(const OSSL_CMP_CTX *ctx, X509_ALGOR **alg) in set_pbmac_algor() argument
210 if (*alg == NULL && (*alg = X509_ALGOR_new()) == NULL) in set_pbmac_algor()
214 X509_ALGOR_set0(*alg, OBJ_nid2obj(NID_id_PasswordBasedMAC), in set_pbmac_algor()
226 static int set_sig_algor(const OSSL_CMP_CTX *ctx, X509_ALGOR **alg) in set_sig_algor() argument
238 if (*alg == NULL && (*alg = X509_ALGOR_new()) == NULL) in set_sig_algor()
241 if (X509_ALGOR_set0(*alg, algo, V_ASN1_UNDEF, NULL)) in set_sig_algor()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Dcrypto_internal-cipher.c18 enum crypto_cipher_alg alg; member
43 struct crypto_cipher * crypto_cipher_init(enum crypto_cipher_alg alg, in crypto_cipher_init() argument
53 ctx->alg = alg; in crypto_cipher_init()
55 switch (alg) { in crypto_cipher_init()
108 switch (ctx->alg) { in crypto_cipher_encrypt()
172 switch (ctx->alg) { in crypto_cipher_decrypt()
232 switch (ctx->alg) { in crypto_cipher_deinit()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Dcrypto_internal-cipher.c18 enum crypto_cipher_alg alg; member
43 struct crypto_cipher * crypto_cipher_init(enum crypto_cipher_alg alg, in crypto_cipher_init() argument
53 ctx->alg = alg; in crypto_cipher_init()
55 switch (alg) { in crypto_cipher_init()
108 switch (ctx->alg) { in crypto_cipher_encrypt()
172 switch (ctx->alg) { in crypto_cipher_decrypt()
232 switch (ctx->alg) { in crypto_cipher_deinit()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
H A Dcryp_symc.c238 static hi_void cryp_symc_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in cryp_symc_setmode() argument
249 hisi_ctx->alg = alg; in cryp_symc_setmode()
256 static hi_void cryp_3des2dma_setmode(hi_void *ctx, symc_alg alg, symc_mode mode, symc_width width) in cryp_3des2dma_setmode() argument
267 crypto_unused(alg); in cryp_3des2dma_setmode()
272 hisi_ctx->alg = SYMC_ALG_TDES; in cryp_3des2dma_setmode()
477 static symc_klen cryp_symc_key_type(symc_alg alg, hi_u32 klen) in cryp_symc_key_type() argument
481 if ((alg == SYMC_ALG_AES) && (klen == AES_KEY_192BIT)) { in cryp_symc_key_type()
483 } else if ((alg == SYMC_ALG_AES) && (klen == AES_KEY_256BIT)) { in cryp_symc_key_type()
485 } else if ((alg in cryp_symc_key_type()
1201 cryp_get_symc(hi_u32 alg, hi_u32 mode) cryp_get_symc() argument
1507 cryp_register_symc_default(symc_func *func, symc_alg alg, symc_mode mode) cryp_register_symc_default() argument
1890 cryp_get_symc_alg(hi_cipher_alg alg, symc_alg *cryp_alg) cryp_get_symc_alg() argument
1958 cryp_get_symc_op(hi_cipher_alg alg, hi_cipher_work_mode mode) cryp_get_symc_op() argument
[all...]
/kernel/linux/linux-6.6/include/crypto/
H A Dhash.h366 struct crypto_alg *alg) in __crypto_hash_alg_common()
368 return container_of(alg, struct hash_alg_common, base); in __crypto_hash_alg_common()
570 struct hash_alg_common *alg) in hash_get_stat()
573 return &alg->stat; in hash_get_stat()
579 static inline int crypto_hash_errstat(struct hash_alg_common *alg, int err) in crypto_hash_errstat() argument
585 atomic64_inc(&hash_get_stat(alg)->err_cnt); in crypto_hash_errstat()
604 struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in crypto_ahash_update() local
607 atomic64_add(req->nbytes, &hash_get_stat(alg)->hash_tlen); in crypto_ahash_update()
609 return crypto_hash_errstat(alg, tfm->update(req)); in crypto_ahash_update()
821 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg) in __crypto_shash_alg() argument
365 __crypto_hash_alg_common( struct crypto_alg *alg) __crypto_hash_alg_common() argument
569 hash_get_stat( struct hash_alg_common *alg) hash_get_stat() argument
[all...]
/third_party/mbedtls/library/
H A Dssl_ticket.c94 psa_set_key_algorithm(&attributes, key->alg); in ssl_ticket_gen_key()
183 psa_set_key_algorithm(&attributes, key->alg); in mbedtls_ssl_ticket_rotate()
223 psa_algorithm_t alg; in mbedtls_ssl_ticket_setup() local
231 &alg, &key_type, &key_bits) != PSA_SUCCESS) { in mbedtls_ssl_ticket_setup()
235 if (PSA_ALG_IS_AEAD(alg) == 0) { in mbedtls_ssl_ticket_setup()
260 ctx->keys[0].alg = alg; in mbedtls_ssl_ticket_setup()
264 ctx->keys[1].alg = alg; in mbedtls_ssl_ticket_setup()
360 if ((status = psa_aead_encrypt(key->key, key->alg, i in mbedtls_ssl_ticket_write()
[all...]
H A Dpsa_crypto_mac.h40 * \param alg The MAC algorithm to use (\c PSA_ALG_XXX value
41 * such that #PSA_ALG_IS_MAC(\p alg) is true).
52 * \p alg is not supported.
62 psa_algorithm_t alg,
85 * \param alg The MAC algorithm to use (\c PSA_ALG_XXX value
86 * such that #PSA_ALG_IS_MAC(\p alg) is true).
91 * \p alg is not supported.
102 psa_algorithm_t alg);
120 * \param alg The MAC algorithm to use (\c PSA_ALG_XXX value
121 * such that #PSA_ALG_IS_MAC(\p alg) i
[all...]
H A Dpk.c247 int mbedtls_pk_can_do_ext(const mbedtls_pk_context *ctx, psa_algorithm_t alg, in mbedtls_pk_can_do_ext() argument
260 if (PSA_ALG_IS_ECDSA(alg) == 0 && in mbedtls_pk_can_do_ext()
261 PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) == 0 && in mbedtls_pk_can_do_ext()
262 PSA_ALG_IS_RSA_PSS(alg) == 0 && in mbedtls_pk_can_do_ext()
263 alg != PSA_ALG_RSA_PKCS1V15_CRYPT && in mbedtls_pk_can_do_ext()
264 PSA_ALG_IS_ECDH(alg) == 0) { in mbedtls_pk_can_do_ext()
277 if (PSA_ALG_IS_SIGN_HASH(alg) && in mbedtls_pk_can_do_ext()
278 PSA_ALG_SIGN_GET_HASH(alg) == PSA_ALG_ANY_HASH) { in mbedtls_pk_can_do_ext()
285 if (PSA_ALG_IS_ECDSA(alg) || PSA_ALG_IS_ECDH(alg)) { in mbedtls_pk_can_do_ext()
481 psa_algorithm_t alg = 0; mbedtls_pk_get_psa_attributes() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/perlasm/
H A Dsparcv9_modes.pl42 my ($alg,$bits) = @_;
45 .globl ${alg}${bits}_t4_cbc_encrypt
47 ${alg}${bits}_t4_cbc_encrypt:
75 call _${alg}${bits}_load_enckey
115 call _${alg}${bits}_encrypt_1x
224 call _${alg}${bits}_encrypt_1x
254 .type ${alg}${bits}_t4_cbc_encrypt,#function
255 .size ${alg}${bits}_t4_cbc_encrypt,.-${alg}${bits}_t4_cbc_encrypt
260 my ($alg,
[all...]
/third_party/openssl/crypto/perlasm/
H A Dsparcv9_modes.pl42 my ($alg,$bits) = @_;
45 .globl ${alg}${bits}_t4_cbc_encrypt
47 ${alg}${bits}_t4_cbc_encrypt:
75 call _${alg}${bits}_load_enckey
115 call _${alg}${bits}_encrypt_1x
224 call _${alg}${bits}_encrypt_1x
254 .type ${alg}${bits}_t4_cbc_encrypt,#function
255 .size ${alg}${bits}_t4_cbc_encrypt,.-${alg}${bits}_t4_cbc_encrypt
260 my ($alg,
[all...]
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Dcrc32c-intel_glue.c196 static struct shash_alg alg = { variable
229 alg.update = crc32c_pcl_intel_update; in crc32c_intel_mod_init()
230 alg.finup = crc32c_pcl_intel_finup; in crc32c_intel_mod_init()
231 alg.digest = crc32c_pcl_intel_digest; in crc32c_intel_mod_init()
234 return crypto_register_shash(&alg); in crc32c_intel_mod_init()
239 crypto_unregister_shash(&alg); in crc32c_intel_mod_fini()
/kernel/linux/linux-5.10/drivers/crypto/rockchip/
H A Drk3288_crypto.c107 &rk_cipher_algs[i]->alg.skcipher); in rk_crypto_register()
110 &rk_cipher_algs[i]->alg.hash); in rk_crypto_register()
119 crypto_unregister_skcipher(&rk_cipher_algs[k]->alg.skcipher); in rk_crypto_register()
121 crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_register()
132 crypto_unregister_skcipher(&rk_cipher_algs[i]->alg.skcipher); in rk_crypto_unregister()
134 crypto_unregister_ahash(&rk_cipher_algs[i]->alg.hash); in rk_crypto_unregister()
236 dev_err(dev, "err in register alg"); in rk_crypto_probe()
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dcrc32c-intel_glue.c196 static struct shash_alg alg = { variable
229 alg.update = crc32c_pcl_intel_update; in crc32c_intel_mod_init()
230 alg.finup = crc32c_pcl_intel_finup; in crc32c_intel_mod_init()
231 alg.digest = crc32c_pcl_intel_digest; in crc32c_intel_mod_init()
234 return crypto_register_shash(&alg); in crc32c_intel_mod_init()
239 crypto_unregister_shash(&alg); in crc32c_intel_mod_fini()
/kernel/linux/linux-5.10/drivers/crypto/qce/
H A Dsha.h63 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() local
66 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
/kernel/linux/linux-6.6/drivers/crypto/qce/
H A Daead.h49 struct aead_alg *alg = crypto_aead_alg(tfm); in to_aead_tmpl() local
51 return container_of(alg, struct qce_alg_template, alg.aead); in to_aead_tmpl()
H A Dsha.h64 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() local
67 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
/kernel/linux/linux-6.6/crypto/
H A Dhash.h16 struct crypto_alg *alg, in crypto_hash_report_stat()
19 struct hash_alg_common *halg = __crypto_hash_alg_common(alg); in crypto_hash_report_stat()
38 int hash_prepare_alg(struct hash_alg_common *alg);
15 crypto_hash_report_stat(struct sk_buff *skb, struct crypto_alg *alg, const char *type) crypto_hash_report_stat() argument
/third_party/libcoap/include/coap3/
H A Dcoap_crypto_internal.h60 cose_alg_t alg; /**< The COSE algorith to use */ member
71 * @param alg The COSE algorithm to check.
75 int coap_crypto_check_cipher_alg(cose_alg_t alg);
143 * @param alg The hash algorithm.
151 int coap_crypto_hash(cose_alg_t alg,
/kernel/linux/linux-5.10/drivers/crypto/bcm/
H A Dspu.c321 * SPU message for a given cipher and hash alg context.
350 * SPU message for a given cipher and hash alg context.
549 * alg: The hash algorithm
556 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg, in spum_digest_size() argument
565 if (alg == HASH_ALG_SHA224) in spum_digest_size()
567 else if (alg == HASH_ALG_SHA384) in spum_digest_size()
637 if ((hash_parms->alg == HASH_ALG_AES) && in spum_create_request()
646 flow_log(" %s. cipher alg:%u mode:%u type %u\n", in spum_create_request()
647 spu_alg_name(cipher_parms->alg, cipher_parms->mode), in spum_create_request()
648 cipher_parms->alg, cipher_parm in spum_create_request()
[all...]
/kernel/linux/linux-5.10/net/mac80211/
H A Drate.c120 struct rate_control_alg *alg; in ieee80211_rate_control_register() local
126 list_for_each_entry(alg, &rate_ctrl_algs, list) { in ieee80211_rate_control_register()
127 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register()
135 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_rate_control_register()
136 if (alg == NULL) { in ieee80211_rate_control_register()
140 alg->ops = ops; in ieee80211_rate_control_register()
142 list_add_tail(&alg->list, &rate_ctrl_algs); in ieee80211_rate_control_register()
151 struct rate_control_alg *alg; in ieee80211_rate_control_unregister() local
154 list_for_each_entry(alg, in ieee80211_rate_control_unregister()
168 struct rate_control_alg *alg; ieee80211_try_rate_control_ops_get() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/bcm/
H A Dspu.c319 * SPU message for a given cipher and hash alg context.
348 * SPU message for a given cipher and hash alg context.
547 * @alg: The hash algorithm
554 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg, in spum_digest_size() argument
563 if (alg == HASH_ALG_SHA224) in spum_digest_size()
565 else if (alg == HASH_ALG_SHA384) in spum_digest_size()
635 if ((hash_parms->alg == HASH_ALG_AES) && in spum_create_request()
644 flow_log(" %s. cipher alg:%u mode:%u type %u\n", in spum_create_request()
645 spu_alg_name(cipher_parms->alg, cipher_parms->mode), in spum_create_request()
646 cipher_parms->alg, cipher_parm in spum_create_request()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/tpm2/
H A Dtpm2.py204 def __init__(self, alg):
205 self.alg = alg
208 return '0x%0x' % (alg)
220 def __init__(self, alg):
221 self.alg = alg
224 return '0x%0x' % (alg)
325 def get_digest_size(alg):
326 ds = ALG_DIGEST_SIZE_MAP.get(alg)
[all...]
/kernel/linux/linux-6.6/net/mac80211/
H A Drate.c128 struct rate_control_alg *alg; in ieee80211_rate_control_register() local
134 list_for_each_entry(alg, &rate_ctrl_algs, list) { in ieee80211_rate_control_register()
135 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register()
143 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_rate_control_register()
144 if (alg == NULL) { in ieee80211_rate_control_register()
148 alg->ops = ops; in ieee80211_rate_control_register()
150 list_add_tail(&alg->list, &rate_ctrl_algs); in ieee80211_rate_control_register()
159 struct rate_control_alg *alg; in ieee80211_rate_control_unregister() local
162 list_for_each_entry(alg, in ieee80211_rate_control_unregister()
176 struct rate_control_alg *alg; ieee80211_try_rate_control_ops_get() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
H A Dtlsv1_client_ocsp.c67 static unsigned int ocsp_hash_data(struct asn1_oid *alg, const u8 *data, in ocsp_hash_data() argument
74 if (x509_sha1_oid(alg)) { in ocsp_hash_data()
81 if (x509_sha256_oid(alg)) { in ocsp_hash_data()
88 if (x509_sha384_oid(alg)) { in ocsp_hash_data()
95 if (x509_sha512_oid(alg)) { in ocsp_hash_data()
103 asn1_oid_to_str(alg, buf, sizeof(buf)); in ocsp_hash_data()
104 wpa_printf(MSG_DEBUG, "OCSP: Could not calculate hash with alg %s", in ocsp_hash_data()
118 struct x509_algorithm_identifier alg; in tls_process_ocsp_single_response() local
161 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos)) in tls_process_ocsp_single_response()
181 hash_len = ocsp_hash_data(&alg in tls_process_ocsp_single_response()
363 struct x509_algorithm_identifier alg; tls_process_basic_ocsp_response() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
H A Dtlsv1_client_ocsp.c67 static unsigned int ocsp_hash_data(struct asn1_oid *alg, const u8 *data, in ocsp_hash_data() argument
74 if (x509_sha1_oid(alg)) { in ocsp_hash_data()
81 if (x509_sha256_oid(alg)) { in ocsp_hash_data()
88 if (x509_sha384_oid(alg)) { in ocsp_hash_data()
95 if (x509_sha512_oid(alg)) { in ocsp_hash_data()
103 asn1_oid_to_str(alg, buf, sizeof(buf)); in ocsp_hash_data()
104 wpa_printf(MSG_DEBUG, "OCSP: Could not calculate hash with alg %s", in ocsp_hash_data()
118 struct x509_algorithm_identifier alg; in tls_process_ocsp_single_response() local
157 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos)) in tls_process_ocsp_single_response()
175 hash_len = ocsp_hash_data(&alg in tls_process_ocsp_single_response()
354 struct x509_algorithm_identifier alg; tls_process_basic_ocsp_response() local
[all...]

Completed in 16 milliseconds

1...<<11121314151617181920>>...46