Lines Matching refs:cipher
668 /* The SPU allows some level of flexibility for partial cipher blocks
672 * as large as the cipher block size. This means that a cipher block
704 static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
707 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher);
724 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN);
733 static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
736 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher);
745 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN);
760 static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
763 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher);
770 crypto_ablkcipher_set_flags(cipher, CRYPTO_TFM_RES_BAD_KEY_LEN);
778 static int n2_arc4_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
781 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher);
1351 struct n2_cipher_alg *cipher, *cipher_tmp;
1355 list_for_each_entry_safe(cipher, cipher_tmp, &cipher_algs, entry) {
1356 crypto_unregister_alg(&cipher->alg);
1357 list_del(&cipher->entry);
1358 kfree(cipher);