Lines Matching refs:sw_cipher

859 	crypto_skcipher_clear_flags(ablkctx->sw_cipher, CRYPTO_TFM_REQ_MASK);  in chcr_cipher_fallback_setkey()
860 crypto_skcipher_set_flags(ablkctx->sw_cipher, cipher->base.crt_flags & in chcr_cipher_fallback_setkey()
862 err = crypto_skcipher_setkey(ablkctx->sw_cipher, key, keylen); in chcr_cipher_fallback_setkey()
865 crypto_skcipher_get_flags(ablkctx->sw_cipher) & in chcr_cipher_fallback_setkey()
1132 err = chcr_cipher_fallback(ablkctx->sw_cipher, in chcr_handle_cipher_resp()
1243 err = chcr_cipher_fallback(ablkctx->sw_cipher, in process_cipher()
1372 ablkctx->sw_cipher = crypto_alloc_skcipher(alg->cra_name, 0, in chcr_cra_init()
1374 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_cra_init()
1376 return PTR_ERR(ablkctx->sw_cipher); in chcr_cra_init()
1402 ablkctx->sw_cipher = crypto_alloc_skcipher("ctr(aes)", 0, in chcr_rfc3686_init()
1404 if (IS_ERR(ablkctx->sw_cipher)) { in chcr_rfc3686_init()
1406 return PTR_ERR(ablkctx->sw_cipher); in chcr_rfc3686_init()
1418 crypto_free_skcipher(ablkctx->sw_cipher); in chcr_cra_exit()
2247 aead_request_set_tfm(subreq, aeadctx->sw_cipher); in chcr_aead_fallback()
3041 aeadctx->sw_cipher = crypto_alloc_aead(alg->base.cra_name, 0, in chcr_aead_cra_init()
3044 if (IS_ERR(aeadctx->sw_cipher)) in chcr_aead_cra_init()
3045 return PTR_ERR(aeadctx->sw_cipher); in chcr_aead_cra_init()
3048 crypto_aead_reqsize(aeadctx->sw_cipher))); in chcr_aead_cra_init()
3056 crypto_free_aead(aeadctx->sw_cipher); in chcr_aead_cra_exit()
3066 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_null_setauthsize()
3103 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_setauthsize()
3143 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_gcm_setauthsize()
3169 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_4106_4309_setauthsize()
3211 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_ccm_setauthsize()
3253 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_ccm_setkey()
3254 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_ccm_setkey()
3256 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_ccm_setkey()
3258 crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) & in chcr_aead_ccm_setkey()
3277 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_rfc4309_setkey()
3278 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) & in chcr_aead_rfc4309_setkey()
3280 error = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_rfc4309_setkey()
3282 crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) & in chcr_aead_rfc4309_setkey()
3301 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_gcm_setkey()
3302 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(aead) in chcr_gcm_setkey()
3304 ret = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_gcm_setkey()
3306 crypto_aead_set_flags(aead, crypto_aead_get_flags(aeadctx->sw_cipher) & in chcr_gcm_setkey()
3379 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_authenc_setkey()
3380 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_authenc_setkey()
3382 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_authenc_setkey()
3384 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_authenc_setkey()
3510 crypto_aead_clear_flags(aeadctx->sw_cipher, CRYPTO_TFM_REQ_MASK); in chcr_aead_digest_null_setkey()
3511 crypto_aead_set_flags(aeadctx->sw_cipher, crypto_aead_get_flags(authenc) in chcr_aead_digest_null_setkey()
3513 err = crypto_aead_setkey(aeadctx->sw_cipher, key, keylen); in chcr_aead_digest_null_setkey()
3515 crypto_aead_set_flags(authenc, crypto_aead_get_flags(aeadctx->sw_cipher) in chcr_aead_digest_null_setkey()