Lines Matching refs:sw_cipher

877 	crypto_sync_skcipher_clear_flags(ablkctx->sw_cipher,  in chcr_cipher_fallback_setkey()
879 crypto_sync_skcipher_set_flags(ablkctx->sw_cipher, in chcr_cipher_fallback_setkey()
881 err = crypto_sync_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey()
884 crypto_sync_skcipher_get_flags(ablkctx->sw_cipher) & in chcr_cipher_fallback_setkey()
1152 err = chcr_cipher_fallback(ablkctx->sw_cipher, in chcr_handle_cipher_resp()
1267 err = chcr_cipher_fallback(ablkctx->sw_cipher, in process_cipher()
1407 ablkctx->sw_cipher = crypto_alloc_sync_skcipher(alg->cra_name, 0, in chcr_cra_init()
1409 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_cra_init()
1411 return PTR_ERR(ablkctx->sw_cipher); in chcr_cra_init()
1427 ablkctx->sw_cipher = crypto_alloc_sync_skcipher("ctr(aes)", 0, in chcr_rfc3686_init()
1429 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_rfc3686_init()
1431 return PTR_ERR(ablkctx->sw_cipher); in chcr_rfc3686_init()
1443 crypto_free_sync_skcipher(ablkctx->sw_cipher); in chcr_cra_exit()
2312 aead_request_set_tfm(subreq, aeadctx->sw_cipher); in chcr_aead_fallback()
3100 aeadctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in chcr_aead_cra_init()
3103 if (IS_ERR(aeadctx->sw_cipher)) in chcr_aead_cra_init()
3104 return PTR_ERR(aeadctx->sw_cipher); in chcr_aead_cra_init()
3107 crypto_aead_reqsize(aeadctx->sw_cipher))); in chcr_aead_cra_init()
3115 crypto_free_aead(aeadctx->sw_cipher); in chcr_aead_cra_exit()
3125 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_null_setauthsize()
3162 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_setauthsize()
3202 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_gcm_setauthsize()
3228 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_4106_4309_setauthsize()
3270 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_ccm_setauthsize()
3312 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_ccm_setkey()
3313 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_ccm_setkey()
3315 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_ccm_setkey()
3317 crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) & in chcr_aead_ccm_setkey()
3336 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_rfc4309_setkey()
3337 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_rfc4309_setkey()
3339 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_rfc4309_setkey()
3341 crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) & in chcr_aead_rfc4309_setkey()
3360 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_gcm_setkey()
3361 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) in chcr_gcm_setkey()
3363 ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_gcm_setkey()
3365 crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) & in chcr_gcm_setkey()
3430 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_authenc_setkey()
3431 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3433 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_authenc_setkey()
3435 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_authenc_setkey()
3560 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_digest_null_setkey()
3561 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3563 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_digest_null_setkey()
3565 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_aead_digest_null_setkey()