Lines Matching refs:skcipher

713 	struct skcipher_alg	skcipher;  member
720 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg()
723 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument
726 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey()
728 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey()
751 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument
754 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey()
756 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey()
759 err = verify_skcipher_des_key(skcipher, key); in n2_des_setkey()
770 static int n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_3des_setkey() argument
773 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_3des_setkey()
775 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_3des_setkey()
778 err = verify_skcipher_des3_key(skcipher, key); in n2_3des_setkey()
797 static int __n2_crypt_chunk(struct crypto_skcipher *skcipher, in __n2_crypt_chunk() argument
801 struct n2_skcipher_context *ctx = crypto_skcipher_ctx(skcipher); in __n2_crypt_chunk()
1088 struct skcipher_alg skcipher; member
1098 .skcipher = {
1111 .skcipher = {
1127 .skcipher = {
1140 .skcipher = {
1156 .skcipher = {
1169 .skcipher = {
1183 .skcipher = {
1275 struct n2_skcipher_alg *skcipher, *skcipher_tmp; in __n2_unregister_algs() local
1279 list_for_each_entry_safe(skcipher, skcipher_tmp, &skcipher_algs, entry) { in __n2_unregister_algs()
1280 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
1281 list_del(&skcipher->entry); in __n2_unregister_algs()
1282 kfree(skcipher); in __n2_unregister_algs()
1311 alg = &p->skcipher; in __n2_register_one_skcipher()
1312 *alg = tmpl->skcipher; in __n2_register_one_skcipher()