Searched refs:tfm_ctx (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/crypto/xilinx/ |
| H A D | zynqmp-aes-gcm.c | 141 struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); in zynqmp_aes_aead_cipher() local 144 struct device *dev = tfm_ctx->dev; in zynqmp_aes_aead_cipher() 175 hwreq->keysrc = tfm_ctx->keysrc; in zynqmp_aes_aead_cipher() 184 hwreq->key = tfm_ctx->key_dma_addr; in zynqmp_aes_aead_cipher() 245 struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); in versal_aes_aead_cipher() local 249 struct device *dev = tfm_ctx->dev; in versal_aes_aead_cipher() 292 hwreq->keysrc = tfm_ctx->keysrc; in versal_aes_aead_cipher() 304 if (tfm_ctx->keylen == AES_KEYSIZE_128) in versal_aes_aead_cipher() 312 tfm_ctx->key_dma_addr); in versal_aes_aead_cipher() 377 static int zynqmp_fallback_check(struct xilinx_aead_tfm_ctx *tfm_ctx, in zynqmp_fallback_check() argument [all …]
|
| H A D | zynqmp-sha.c | 47 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_init_tfm() local 53 tfm_ctx->dev = drv_ctx->dev; in zynqmp_sha_init_tfm() 62 crypto_shash_statesize(tfm_ctx->fbk_tfm)) { in zynqmp_sha_init_tfm() 67 tfm_ctx->fbk_tfm = fallback_tfm; in zynqmp_sha_init_tfm() 74 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_exit_tfm() local 76 crypto_free_shash(tfm_ctx->fbk_tfm); in zynqmp_sha_exit_tfm()
|
| /linux/arch/s390/crypto/ |
| H A D | phmac_s390.c | 301 static inline int phmac_tfm_ctx_setkey(struct phmac_tfm_ctx *tfm_ctx, in phmac_tfm_ctx_setkey() argument 304 if (keylen > sizeof(tfm_ctx->keybuf)) in phmac_tfm_ctx_setkey() 307 memcpy(tfm_ctx->keybuf, key, keylen); in phmac_tfm_ctx_setkey() 308 tfm_ctx->keylen = keylen; in phmac_tfm_ctx_setkey() 361 static int phmac_convert_key(struct phmac_tfm_ctx *tfm_ctx, bool tested) in phmac_convert_key() argument 366 spin_lock_bh(&tfm_ctx->pk_lock); in phmac_convert_key() 367 tfm_ctx->pk_state = PK_STATE_CONVERT_IN_PROGRESS; in phmac_convert_key() 368 spin_unlock_bh(&tfm_ctx->pk_lock); in phmac_convert_key() 370 rc = convert_key(tfm_ctx->keybuf, tfm_ctx->keylen, &pk, tested); in phmac_convert_key() 373 spin_lock_bh(&tfm_ctx->pk_lock); in phmac_convert_key() [all …]
|
| H A D | hmac_s390.c | 169 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(tfm); in s390_hmac_sha2_setkey() local 173 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in s390_hmac_sha2_setkey() 176 return hash_key(key, keylen, tfm_ctx->key, ds); in s390_hmac_sha2_setkey() 178 memcpy(tfm_ctx->key, key, keylen); in s390_hmac_sha2_setkey() 184 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(desc->tfm); in s390_hmac_sha2_init() local 189 tfm_ctx->key, bs); in s390_hmac_sha2_init()
|
| /linux/crypto/ |
| H A D | dh.c | 316 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_init_tfm() local 318 tfm_ctx->dh_tfm = crypto_spawn_kpp(&inst_ctx->dh_spawn); in dh_safe_prime_init_tfm() 319 if (IS_ERR(tfm_ctx->dh_tfm)) in dh_safe_prime_init_tfm() 320 return PTR_ERR(tfm_ctx->dh_tfm); in dh_safe_prime_init_tfm() 323 crypto_kpp_reqsize(tfm_ctx->dh_tfm)); in dh_safe_prime_init_tfm() 330 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_exit_tfm() local 332 crypto_free_kpp(tfm_ctx->dh_tfm); in dh_safe_prime_exit_tfm() 462 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_set_secret() local 500 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size); in dh_safe_prime_set_secret() 516 struct dh_safe_prime_tfm_ctx *tfm_ctx = in dh_safe_prime_prepare_dh_req() local [all …]
|
| /linux/drivers/crypto/axis/ |
| H A D | artpec6_crypto.c | 1238 struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm); in artpec6_crypto_aead_init() local 1240 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in artpec6_crypto_aead_init() 2232 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base); in artpec6_crypto_hash_set_key() local 2242 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key)); in artpec6_crypto_hash_set_key() 2247 tfm_ctx->hmac_key_length = blocksize; in artpec6_crypto_hash_set_key() 2249 ret = crypto_shash_tfm_digest(tfm_ctx->child_hash, key, keylen, in artpec6_crypto_hash_set_key() 2250 tfm_ctx->hmac_key); in artpec6_crypto_hash_set_key() 2254 memcpy(tfm_ctx->hmac_key, key, keylen); in artpec6_crypto_hash_set_key() 2255 tfm_ctx->hmac_key_length = keylen; in artpec6_crypto_hash_set_key() 2395 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); in artpec6_crypto_ahash_init_common() local [all …]
|
| /linux/drivers/crypto/hisilicon/sec/ |
| H A D | sec_drv.h | 278 struct sec_alg_tfm_ctx *tfm_ctx; member
|
| H A D | sec_algs.c | 430 struct sec_alg_tfm_ctx *ctx = sec_req->tfm_ctx; in sec_skcipher_alg_callback() 752 sec_req->tfm_ctx = ctx; in sec_alg_skcipher_crypto()
|