• Home
  • Raw
  • Download

Lines Matching refs:cipher

42 	const struct nitrox_cipher *cipher = flexi_cipher_table;  in flexi_cipher_type()  local
44 while (cipher->name) { in flexi_cipher_type()
45 if (!strcmp(cipher->name, name)) in flexi_cipher_type()
47 cipher++; in flexi_cipher_type()
49 return cipher->value; in flexi_cipher_type()
115 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey() argument
119 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in nitrox_skcipher_setkey()
145 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in nitrox_aes_setkey() argument
152 crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in nitrox_aes_setkey()
155 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_setkey()
170 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt() local
171 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); in nitrox_skcipher_crypt()
173 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_skcipher_crypt()
219 static int nitrox_3des_setkey(struct crypto_skcipher *cipher, in nitrox_3des_setkey() argument
223 crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in nitrox_3des_setkey()
227 return nitrox_skcipher_setkey(cipher, 0, key, keylen); in nitrox_3des_setkey()
240 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, in nitrox_aes_xts_setkey() argument
243 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in nitrox_aes_xts_setkey()
256 crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in nitrox_aes_xts_setkey()
264 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_xts_setkey()
267 static int nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, in nitrox_aes_ctr_rfc3686_setkey() argument
270 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in nitrox_aes_ctr_rfc3686_setkey()
287 crypto_skcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in nitrox_aes_ctr_rfc3686_setkey()
290 return nitrox_skcipher_setkey(cipher, aes_keylen, key, keylen); in nitrox_aes_ctr_rfc3686_setkey()