Lines Matching refs:cipher

73 	struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req);
74 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
121 static int crypto4xx_setkey_aes(struct crypto_skcipher *cipher,
127 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
177 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher,
180 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC,
184 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher,
187 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_ECB,
191 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
194 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
197 rc = crypto4xx_setkey_aes(cipher, key, keylen - CTR_RFC3686_NONCE_SIZE,
210 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req);
211 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
225 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req);
226 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
241 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req);
242 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
243 size_t iv_len = crypto_skcipher_ivsize(cipher);
255 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher);
258 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher);
274 struct crypto_skcipher *cipher,
278 crypto_sync_skcipher_clear_flags(ctx->sw_cipher.cipher,
280 crypto_sync_skcipher_set_flags(ctx->sw_cipher.cipher,
281 crypto_skcipher_get_flags(cipher) & CRYPTO_TFM_REQ_MASK);
282 return crypto_sync_skcipher_setkey(ctx->sw_cipher.cipher, key, keylen);
285 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher,
288 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher);
291 rc = crypto4xx_sk_setup_fallback(ctx, cipher, key, keylen);
295 return crypto4xx_setkey_aes(cipher, key, keylen,
353 struct crypto_aead *cipher,
359 crypto_aead_get_flags(cipher) & CRYPTO_TFM_REQ_MASK);
367 int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, const u8 *key,
370 struct crypto_tfm *tfm = crypto_aead_tfm(cipher);
375 rc = crypto4xx_aead_setup_fallback(ctx, cipher, key, keylen);
469 int crypto4xx_setauthsize_aead(struct crypto_aead *cipher,
472 struct crypto_tfm *tfm = crypto_aead_tfm(cipher);
513 int crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher,
516 struct crypto_tfm *tfm = crypto_aead_tfm(cipher);
524 rc = crypto4xx_aead_setup_fallback(ctx, cipher, key, keylen);