Lines Matching refs:sw_cipher
58 } sw_cipher; member
197 crypto_sync_skcipher_clear_flags(tctx->sw_cipher.sk, in kmb_ocs_sk_set_key()
199 crypto_sync_skcipher_set_flags(tctx->sw_cipher.sk, in kmb_ocs_sk_set_key()
203 return crypto_sync_skcipher_setkey(tctx->sw_cipher.sk, in_key, key_len); in kmb_ocs_sk_set_key()
219 crypto_aead_clear_flags(tctx->sw_cipher.aead, CRYPTO_TFM_REQ_MASK); in kmb_ocs_aead_set_key()
220 crypto_aead_set_flags(tctx->sw_cipher.aead, in kmb_ocs_aead_set_key()
223 return crypto_aead_setkey(tctx->sw_cipher.aead, in_key, key_len); in kmb_ocs_aead_set_key()
323 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, tctx->sw_cipher.sk); in kmb_ocs_sk_common()
325 skcipher_request_set_sync_tfm(subreq, tctx->sw_cipher.sk); in kmb_ocs_sk_common()
651 aead_request_set_tfm(subreq, tctx->sw_cipher.aead); in kmb_ocs_aead_common()
657 rc = crypto_aead_setauthsize(tctx->sw_cipher.aead, in kmb_ocs_aead_common()
1171 tctx->sw_cipher.sk = blk; in ocs_aes_init_tfm()
1203 if (tctx->sw_cipher.sk) { in ocs_exit_tfm()
1204 crypto_free_sync_skcipher(tctx->sw_cipher.sk); in ocs_exit_tfm()
1205 tctx->sw_cipher.sk = NULL; in ocs_exit_tfm()
1229 tctx->sw_cipher.aead = blk; in ocs_aes_aead_cra_init()
1234 crypto_aead_reqsize(tctx->sw_cipher.aead)))); in ocs_aes_aead_cra_init()
1277 if (tctx->sw_cipher.aead) { in ocs_aead_cra_exit()
1278 crypto_free_aead(tctx->sw_cipher.aead); in ocs_aead_cra_exit()
1279 tctx->sw_cipher.aead = NULL; in ocs_aead_cra_exit()