Lines Matching refs:skcipher
713 struct skcipher_alg skcipher; member
720 return container_of(alg, struct n2_skcipher_alg, skcipher); in n2_skcipher_alg()
727 static int n2_aes_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_aes_setkey() argument
730 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_aes_setkey()
732 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey()
755 static int n2_des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_des_setkey() argument
758 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_des_setkey()
760 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey()
763 err = verify_skcipher_des_key(skcipher, key); in n2_des_setkey()
774 static int n2_3des_setkey(struct crypto_skcipher *skcipher, const u8 *key, in n2_3des_setkey() argument
777 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in n2_3des_setkey()
779 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_3des_setkey()
782 err = verify_skcipher_des3_key(skcipher, key); in n2_3des_setkey()
801 static int __n2_crypt_chunk(struct crypto_skcipher *skcipher, in __n2_crypt_chunk() argument
805 struct n2_skcipher_context *ctx = crypto_skcipher_ctx(skcipher); in __n2_crypt_chunk()
1092 struct skcipher_alg skcipher; member
1102 .skcipher = {
1115 .skcipher = {
1129 .skcipher = {
1144 .skcipher = {
1157 .skcipher = {
1171 .skcipher = {
1185 .skcipher = {
1198 .skcipher = {
1212 .skcipher = {
1304 struct n2_skcipher_alg *skcipher, *skcipher_tmp; in __n2_unregister_algs() local
1308 list_for_each_entry_safe(skcipher, skcipher_tmp, &skcipher_algs, entry) { in __n2_unregister_algs()
1309 crypto_unregister_skcipher(&skcipher->skcipher); in __n2_unregister_algs()
1310 list_del(&skcipher->entry); in __n2_unregister_algs()
1311 kfree(skcipher); in __n2_unregister_algs()
1340 alg = &p->skcipher; in __n2_register_one_skcipher()
1341 *alg = tmpl->skcipher; in __n2_register_one_skcipher()