Lines Matching refs:cipher
714 static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_aes_setkey() argument
717 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_aes_setkey()
734 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_aes_setkey()
743 static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_des_setkey() argument
746 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_des_setkey()
755 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_des_setkey()
770 static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_3des_setkey() argument
773 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_3des_setkey()
780 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN); in n2_3des_setkey()
788 static int n2_arc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key, in n2_arc4_setkey() argument
791 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in n2_arc4_setkey()
1361 struct n2_cipher_alg *cipher, *cipher_tmp; in __n2_unregister_algs() local
1365 list_for_each_entry_safe(cipher, cipher_tmp, &cipher_algs, entry) { in __n2_unregister_algs()
1366 crypto_unregister_alg(&cipher->alg); in __n2_unregister_algs()
1367 list_del(&cipher->entry); in __n2_unregister_algs()
1368 kfree(cipher); in __n2_unregister_algs()