Lines Matching refs:skcipher

711 	struct skcipher_alg	skcipher;  member
718 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg()
725 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument
728 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey()
730 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey()
753 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument
756 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey()
758 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey()
761 err = verify_skcipher_des_key(skcipher, key); in n2_des_setkey()
772 static int n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_3des_setkey() argument
775 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_3des_setkey()
777 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_3des_setkey()
780 err = verify_skcipher_des3_key(skcipher, key); in n2_3des_setkey()
799 static int __n2_crypt_chunk(struct crypto_skcipher *skcipher, in __n2_crypt_chunk() argument
803 struct n2_skcipher_context *ctx = crypto_skcipher_ctx(skcipher); in __n2_crypt_chunk()
1090 struct skcipher_alg skcipher; member
1100 .skcipher = {
1113 .skcipher = {
1127 .skcipher = {
1142 .skcipher = {
1155 .skcipher = {
1169 .skcipher = {
1183 .skcipher = {
1196 .skcipher = {
1210 .skcipher = {
1297 struct n2_skcipher_alg *skcipher, *skcipher_tmp; in __n2_unregister_algs() local
1301 list_for_each_entry_safe(skcipher, skcipher_tmp, &skcipher_algs, entry) { in __n2_unregister_algs()
1302 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
1303 list_del(&skcipher->entry); in __n2_unregister_algs()
1304 kfree(skcipher); in __n2_unregister_algs()
1333 alg = &p->skcipher; in __n2_register_one_skcipher()
1334 *alg = tmpl->skcipher; in __n2_register_one_skcipher()