Lines Matching defs:cipher
693 static int chcr_cipher_fallback(struct crypto_skcipher *cipher,
701 skcipher_request_set_tfm(&reqctx->fallback_req, cipher);
799 * create_cipher_wr - form the WR for cipher operations
800 * @req: cipher req.
920 static int chcr_cipher_fallback_setkey(struct crypto_skcipher *cipher,
924 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
929 cipher->base.crt_flags & CRYPTO_TFM_REQ_MASK);
933 static int chcr_aes_cbc_setkey(struct crypto_skcipher *cipher,
937 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
942 err = chcr_cipher_fallback_setkey(cipher, key, keylen);
964 static int chcr_aes_ctr_setkey(struct crypto_skcipher *cipher,
968 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
973 err = chcr_cipher_fallback_setkey(cipher, key, keylen);
994 static int chcr_aes_rfc3686_setkey(struct crypto_skcipher *cipher,
998 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
1009 err = chcr_cipher_fallback_setkey(cipher, key, keylen);
2252 static int chcr_aes_xts_setkey(struct crypto_skcipher *cipher, const u8 *key,
2255 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher));
2259 err = chcr_cipher_fallback_setkey(cipher, key, key_len);
3555 /* it contains auth and cipher key both*/
3597 pr_err("Unsupported cipher key\n");
3685 /* it contains auth and cipher key both*/
3716 pr_err("Unsupported cipher key %d\n", keys.enckeylen);