Lines Matching refs:cipher
41 const struct nitrox_cipher *cipher = flexi_cipher_table; in flexi_cipher_type() local
43 while (cipher->name) { in flexi_cipher_type()
44 if (!strcmp(cipher->name, name)) in flexi_cipher_type()
46 cipher++; in flexi_cipher_type()
48 return cipher->value; in flexi_cipher_type()
83 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_cipher_callback() local
84 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_cbc_cipher_callback()
165 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey() argument
169 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in nitrox_skcipher_setkey()
197 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in nitrox_aes_setkey() argument
205 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_setkey()
249 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt() local
250 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); in nitrox_skcipher_crypt()
252 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_skcipher_crypt()
293 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_decrypt() local
294 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_cbc_decrypt()
320 static int nitrox_3des_setkey(struct crypto_skcipher *cipher, in nitrox_3des_setkey() argument
323 return verify_skcipher_des3_key(cipher, key) ?: in nitrox_3des_setkey()
324 nitrox_skcipher_setkey(cipher, 0, key, keylen); in nitrox_3des_setkey()
337 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, in nitrox_aes_xts_setkey() argument
340 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); in nitrox_aes_xts_setkey()
344 ret = xts_verify_key(cipher, key, keylen); in nitrox_aes_xts_setkey()
358 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_xts_setkey()
361 static int nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, in nitrox_aes_ctr_rfc3686_setkey() argument
364 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); in nitrox_aes_ctr_rfc3686_setkey()
381 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_ctr_rfc3686_setkey()