Lines Matching refs:cipher

24  * supported cipher list
41 const struct nitrox_cipher *cipher = flexi_cipher_table;
43 while (cipher->name) {
44 if (!strcmp(cipher->name, name))
46 cipher++;
48 return cipher->value;
83 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq);
84 int ivsize = crypto_skcipher_ivsize(cipher);
165 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher,
169 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher);
179 pr_err("unsupported cipher: %s\n", name);
197 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key,
205 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen);
249 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq);
250 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher);
252 int ivsize = crypto_skcipher_ivsize(cipher);
293 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq);
294 int ivsize = crypto_skcipher_ivsize(cipher);
320 static int nitrox_3des_setkey(struct crypto_skcipher *cipher,
323 return verify_skcipher_des3_key(cipher, key) ?:
324 nitrox_skcipher_setkey(cipher, 0, key, keylen);
337 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher,
340 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher);
344 ret = xts_verify_key(cipher, key, keylen);
358 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen);
361 static int nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher,
364 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher);
381 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen);