Home
last modified time | relevance | path

Searched refs:fbtfm (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec.h113 struct crypto_sync_skcipher *fbtfm; member
H A Dsec_crypto.c697 c_ctx->fbtfm = crypto_alloc_sync_skcipher(alg, 0, in sec_skcipher_fbtfm_init()
699 if (IS_ERR(c_ctx->fbtfm)) { in sec_skcipher_fbtfm_init()
701 return PTR_ERR(c_ctx->fbtfm); in sec_skcipher_fbtfm_init()
745 if (ctx->c_ctx.fbtfm) in sec_skcipher_uninit()
746 crypto_free_sync_skcipher(ctx->c_ctx.fbtfm); in sec_skcipher_uninit()
861 if (c_ctx->fallback && c_ctx->fbtfm) { in sec_skcipher_setkey()
862 ret = crypto_sync_skcipher_setkey(c_ctx->fbtfm, key, keylen); in sec_skcipher_setkey()
2085 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, c_ctx->fbtfm); in sec_skcipher_soft_crypto()
2089 if (!c_ctx->fbtfm) { in sec_skcipher_soft_crypto()
2094 skcipher_request_set_sync_tfm(subreq, c_ctx->fbtfm); in sec_skcipher_soft_crypto()