Lines Matching refs:skcipher

712 	struct skcipher_alg	skcipher;  member
719 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg()
726 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument
729 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey()
731 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey()
754 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument
757 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey()
759 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey()
762 err = verify_skcipher_des_key(skcipher, key); in n2_des_setkey()
773 static int n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_3des_setkey() argument
776 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_3des_setkey()
778 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_3des_setkey()
781 err = verify_skcipher_des3_key(skcipher, key); in n2_3des_setkey()
800 static int __n2_crypt_chunk(struct crypto_skcipher *skcipher, in __n2_crypt_chunk() argument
804 struct n2_skcipher_context *ctx = crypto_skcipher_ctx(skcipher); in __n2_crypt_chunk()
1091 struct skcipher_alg skcipher; member
1101 .skcipher = {
1114 .skcipher = {
1128 .skcipher = {
1143 .skcipher = {
1156 .skcipher = {
1170 .skcipher = {
1184 .skcipher = {
1197 .skcipher = {
1211 .skcipher = {
1298 struct n2_skcipher_alg *skcipher, *skcipher_tmp; in __n2_unregister_algs() local
1302 list_for_each_entry_safe(skcipher, skcipher_tmp, &skcipher_algs, entry) { in __n2_unregister_algs()
1303 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
1304 list_del(&skcipher->entry); in __n2_unregister_algs()
1305 kfree(skcipher); in __n2_unregister_algs()
1334 alg = &p->skcipher; in __n2_register_one_skcipher()
1335 *alg = tmpl->skcipher; in __n2_register_one_skcipher()