Home
last modified time | relevance | path

Searched refs:tfm (Results 326 – 350 of 481) sorted by relevance

1...<<11121314151617181920

/openbmc/linux/crypto/
H A Dnhpoly1305.c125 int crypto_nhpoly1305_setkey(struct crypto_shash *tfm, in crypto_nhpoly1305_setkey() argument
128 struct nhpoly1305_key *ctx = crypto_shash_ctx(tfm); in crypto_nhpoly1305_setkey()
160 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); in crypto_nhpoly1305_update_helper()
201 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); in crypto_nhpoly1305_final_helper()
H A Dalgapi.c804 struct crypto_tfm *tfm; in crypto_spawn_tfm() local
810 tfm = ERR_PTR(-EINVAL); in crypto_spawn_tfm()
814 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm()
815 if (IS_ERR(tfm)) in crypto_spawn_tfm()
818 return tfm; in crypto_spawn_tfm()
822 return tfm; in crypto_spawn_tfm()
829 struct crypto_tfm *tfm; in crypto_spawn_tfm2() local
835 tfm = crypto_create_tfm(alg, spawn->frontend); in crypto_spawn_tfm2()
836 if (IS_ERR(tfm)) in crypto_spawn_tfm2()
839 return tfm; in crypto_spawn_tfm2()
[all …]
H A Dofb.c20 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_ofb_crypt() local
21 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ofb_crypt()
H A Dvmac.c430 static int vmac_setkey(struct crypto_shash *tfm, in vmac_setkey() argument
433 struct vmac_tfm_ctx *tctx = crypto_shash_ctx(tfm); in vmac_setkey()
482 const struct vmac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in vmac_init()
494 const struct vmac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in vmac_update()
564 const struct vmac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in vmac_final()
597 static int vmac_init_tfm(struct crypto_tfm *tfm) in vmac_init_tfm() argument
599 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in vmac_init_tfm()
601 struct vmac_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in vmac_init_tfm()
612 static void vmac_exit_tfm(struct crypto_tfm *tfm) in vmac_exit_tfm() argument
614 struct vmac_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in vmac_exit_tfm()
H A Dauthencesn.c319 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm() argument
321 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_authenc_esn_init_tfm()
323 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_init_tfm()
351 tfm, in crypto_authenc_esn_init_tfm()
369 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm() argument
371 struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_esn_exit_tfm()
H A Dauthenc.c305 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm() argument
307 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_authenc_init_tfm()
309 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_init_tfm()
334 tfm, in crypto_authenc_init_tfm()
352 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm() argument
354 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(tfm); in crypto_authenc_exit_tfm()
/openbmc/linux/arch/x86/kernel/cpu/sgx/
H A Dioctl.c459 static int __sgx_get_key_hash(struct crypto_shash *tfm, const void *modulus, in __sgx_get_key_hash() argument
462 SHASH_DESC_ON_STACK(shash, tfm); in __sgx_get_key_hash()
464 shash->tfm = tfm; in __sgx_get_key_hash()
471 struct crypto_shash *tfm; in sgx_get_key_hash() local
474 tfm = crypto_alloc_shash("sha256", 0, CRYPTO_ALG_ASYNC); in sgx_get_key_hash()
475 if (IS_ERR(tfm)) in sgx_get_key_hash()
476 return PTR_ERR(tfm); in sgx_get_key_hash()
478 ret = __sgx_get_key_hash(tfm, modulus, hash); in sgx_get_key_hash()
480 crypto_free_shash(tfm); in sgx_get_key_hash()
/openbmc/linux/drivers/crypto/
H A Dtalitos.c1718 crypto_ahash_digestsize(tfm)); in common_nonsnoop_hash_unmap()
1793 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in common_nonsnoop_hash()
1849 crypto_ahash_digestsize(tfm), in common_nonsnoop_hash()
1916 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_edesc_alloc()
2198 req = ahash_request_alloc(tfm, GFP_KERNEL); in keyhash()
2233 ret = keyhash(tfm, key, keylen, hash); in ahash_setkey()
3071 struct aead_alg *alg = crypto_aead_alg(tfm); in talitos_cra_init_aead()
3073 struct talitos_ctx *ctx = crypto_aead_ctx(tfm); in talitos_cra_init_aead()
3095 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init_ahash()
3097 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init_ahash()
[all …]
H A Dpadlock-sha.c35 struct padlock_sha_ctx *ctx = crypto_shash_ctx(desc->tfm); in padlock_sha_init()
37 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
59 struct padlock_sha_ctx *ctx = crypto_shash_ctx(desc->tfm); in padlock_sha_import()
61 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
440 int statesize = crypto_shash_statesize(desc->tfm); in padlock_sha_export_nano()
450 int statesize = crypto_shash_statesize(desc->tfm); in padlock_sha_import_nano()
/openbmc/linux/drivers/misc/sgi-gru/
H A Dgrufault.c146 struct gru_tlb_fault_map *tfm; in get_clear_fault_map() local
148 tfm = get_tfm_for_cpu(gru, gru_cpu_fault_map_id()); in get_clear_fault_map()
149 prefetchw(tfm); /* Helps on hardware, required for emulator */ in get_clear_fault_map()
151 k = tfm->fault_bits[i]; in get_clear_fault_map()
153 k = xchg(&tfm->fault_bits[i], 0UL); in get_clear_fault_map()
155 k = tfm->done_bits[i]; in get_clear_fault_map()
157 k = xchg(&tfm->done_bits[i], 0UL); in get_clear_fault_map()
165 gru_flush_cache(tfm); in get_clear_fault_map()
H A Dgrukdump.c70 struct gru_tlb_fault_map *tfm; in gru_dump_tfm() local
77 tfm = get_tfm(gru->gs_gru_base_vaddr, i); in gru_dump_tfm()
78 if (gru_user_copy_handle(&ubuf, tfm)) in gru_dump_tfm()
/openbmc/linux/arch/powerpc/crypto/
H A Dcrc-vpmsum_test.c61 crct10dif_shash->tfm = crct10dif_tfm; in crc_test_init()
70 crc32c_shash->tfm = crc32c_tfm; in crc_test_init()
/openbmc/linux/arch/x86/crypto/
H A Dserpent_sse2_glue.c27 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, in serpent_setkey_skcipher() argument
30 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); in serpent_setkey_skcipher()
H A Dserpent_avx_glue.c35 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, in serpent_setkey_skcipher() argument
38 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); in serpent_setkey_skcipher()
H A Dcast6_avx_glue.c28 static int cast6_setkey_skcipher(struct crypto_skcipher *tfm, in cast6_setkey_skcipher() argument
31 return cast6_setkey(&tfm->base, key, keylen); in cast6_setkey_skcipher()
H A Dcast5_avx_glue.c28 static int cast5_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in cast5_setkey_skcipher() argument
31 return cast5_setkey(&tfm->base, key, keylen); in cast5_setkey_skcipher()
H A Dcamellia_aesni_avx_glue.c30 static int camellia_setkey(struct crypto_skcipher *tfm, const u8 *key, in camellia_setkey() argument
33 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen); in camellia_setkey()
H A Dtwofish_avx_glue.c30 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, in twofish_setkey_skcipher() argument
33 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher()
H A Dtwofish_glue_3way.c21 static int twofish_setkey_skcipher(struct crypto_skcipher *tfm, in twofish_setkey_skcipher() argument
24 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher()
H A Dserpent_avx2_glue.c26 static int serpent_setkey_skcipher(struct crypto_skcipher *tfm, in serpent_setkey_skcipher() argument
29 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); in serpent_setkey_skcipher()
/openbmc/linux/fs/nfsd/
H A Dnfs4recover.c112 struct crypto_shash *tfm; in nfs4_make_rec_clidname() local
117 tfm = crypto_alloc_shash("md5", 0, 0); in nfs4_make_rec_clidname()
118 if (IS_ERR(tfm)) { in nfs4_make_rec_clidname()
119 status = PTR_ERR(tfm); in nfs4_make_rec_clidname()
123 cksum.len = crypto_shash_digestsize(tfm); in nfs4_make_rec_clidname()
140 crypto_free_shash(tfm); in nfs4_make_rec_clidname()
1148 struct crypto_shash *tfm = cn->cn_tfm; in nfsd4_cld_create_v2() local
1575 struct crypto_shash *tfm; in nfsd4_cld_tracking_init() local
1601 if (IS_ERR(tfm)) { in nfsd4_cld_tracking_init()
1602 status = PTR_ERR(tfm); in nfsd4_cld_tracking_init()
[all …]
/openbmc/linux/drivers/crypto/nx/
H A Dnx-aes-gcm.c23 static int gcm_aes_nx_set_key(struct crypto_aead *tfm, in gcm_aes_nx_set_key() argument
27 struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); in gcm_aes_nx_set_key()
62 static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm, in gcm4106_aes_nx_set_key() argument
66 struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); in gcm4106_aes_nx_set_key()
75 rc = gcm_aes_nx_set_key(tfm, in_key, key_len); in gcm4106_aes_nx_set_key()
84 static int gcm4106_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm4106_aes_nx_setauthsize() argument
/openbmc/linux/drivers/md/
H A Ddm-ima.c188 struct crypto_shash *tfm = NULL; in dm_ima_measure_on_table_load() local
215 tfm = crypto_alloc_shash(DM_IMA_TABLE_HASH_ALG, 0, 0); in dm_ima_measure_on_table_load()
216 if (IS_ERR(tfm)) in dm_ima_measure_on_table_load()
219 shash->tfm = tfm; in dm_ima_measure_on_table_load()
220 digest_size = crypto_shash_digestsize(tfm); in dm_ima_measure_on_table_load()
359 if (tfm) in dm_ima_measure_on_table_load()
360 crypto_free_shash(tfm); in dm_ima_measure_on_table_load()
/openbmc/linux/net/sctp/
H A Dauth.c456 struct crypto_shash *tfm = NULL; in sctp_auth_init_hmacs() local
485 tfm = crypto_alloc_shash(sctp_hmac_list[id].hmac_name, 0, 0); in sctp_auth_init_hmacs()
486 if (IS_ERR(tfm)) in sctp_auth_init_hmacs()
489 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs()
712 struct crypto_shash *tfm; in sctp_auth_calculate_hmac() local
739 tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac()
742 if (crypto_shash_setkey(tfm, &asoc_key->data[0], asoc_key->len)) in sctp_auth_calculate_hmac()
745 crypto_shash_tfm_digest(tfm, (u8 *)auth, end - (unsigned char *)auth, in sctp_auth_calculate_hmac()
/openbmc/linux/drivers/scsi/
H A Discsi_tcp.c586 struct crypto_ahash *tfm; in iscsi_sw_tcp_conn_create() local
600 tfm = crypto_alloc_ahash("crc32c", 0, CRYPTO_ALG_ASYNC); in iscsi_sw_tcp_conn_create()
601 if (IS_ERR(tfm)) in iscsi_sw_tcp_conn_create()
604 tcp_sw_conn->tx_hash = ahash_request_alloc(tfm, GFP_KERNEL); in iscsi_sw_tcp_conn_create()
609 tcp_sw_conn->rx_hash = ahash_request_alloc(tfm, GFP_KERNEL); in iscsi_sw_tcp_conn_create()
621 crypto_free_ahash(tfm); in iscsi_sw_tcp_conn_create()
674 struct crypto_ahash *tfm; in iscsi_sw_tcp_conn_destroy() local
676 tfm = crypto_ahash_reqtfm(tcp_sw_conn->tx_hash); in iscsi_sw_tcp_conn_destroy()
678 crypto_free_ahash(tfm); in iscsi_sw_tcp_conn_destroy()

1...<<11121314151617181920