Searched refs:tfm_ctx (Results 1 – 5 of 5) sorted by relevance
| /linux/arch/s390/crypto/ |
| H A D | phmac_s390.c | 297 static inline int phmac_tfm_ctx_setkey(struct phmac_tfm_ctx *tfm_ctx, in phmac_tfm_ctx_setkey() argument 300 if (keylen > sizeof(tfm_ctx->keybuf)) in phmac_tfm_ctx_setkey() 303 memcpy(tfm_ctx->keybuf, key, keylen); in phmac_tfm_ctx_setkey() 304 tfm_ctx->keylen = keylen; in phmac_tfm_ctx_setkey() 353 static int phmac_convert_key(struct phmac_tfm_ctx *tfm_ctx) in phmac_convert_key() argument 358 spin_lock_bh(&tfm_ctx->pk_lock); in phmac_convert_key() 359 tfm_ctx->pk_state = PK_STATE_CONVERT_IN_PROGRESS; in phmac_convert_key() 360 spin_unlock_bh(&tfm_ctx->pk_lock); in phmac_convert_key() 362 rc = convert_key(tfm_ctx->keybuf, tfm_ctx->keylen, &pk); in phmac_convert_key() 365 spin_lock_bh(&tfm_ctx->pk_lock); in phmac_convert_key() [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/crypto/ |
| H A D | scompress.c | 170 struct crypto_scomp **tfm_ctx = acomp_tfm_ctx(tfm); in scomp_acomp_comp_decomp() local 173 struct crypto_scomp *scomp = *tfm_ctx; in scomp_acomp_comp_decomp()
|
| /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()
|