Lines Matching defs:cipher
689 static int chcr_cipher_fallback(struct crypto_skcipher *cipher,
697 skcipher_request_set_tfm(&reqctx->fallback_req, cipher);
795 * create_cipher_wr - form the WR for cipher operations
913 static int chcr_cipher_fallback_setkey(struct crypto_skcipher *cipher,
917 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
922 cipher->base.crt_flags & CRYPTO_TFM_REQ_MASK);
926 static int chcr_aes_cbc_setkey(struct crypto_skcipher *cipher,
930 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
935 err = chcr_cipher_fallback_setkey(cipher, key, keylen);
957 static int chcr_aes_ctr_setkey(struct crypto_skcipher *cipher,
961 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
966 err = chcr_cipher_fallback_setkey(cipher, key, keylen);
987 static int chcr_aes_rfc3686_setkey(struct crypto_skcipher *cipher,
991 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
1002 err = chcr_cipher_fallback_setkey(cipher, key, keylen);
2247 static int chcr_aes_xts_setkey(struct crypto_skcipher *cipher, const u8 *key,
2250 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
2254 err = chcr_cipher_fallback_setkey(cipher, key, key_len);
3551 /* it contains auth and cipher key both*/
3593 pr_err("Unsupported cipher key\n");
3681 /* it contains auth and cipher key both*/
3712 pr_err("Unsupported cipher key %d\n", keys.enckeylen);