23 #include <linux/module.h>
25 #include <linux/string.h>
27 #define NULL_KEY_SIZE 0
28 #define NULL_BLOCK_SIZE 1
29 #define NULL_DIGEST_SIZE 0
30 #define NULL_IV_SIZE 0
33 unsigned int slen,
u8 *
dst,
unsigned int *
dlen)
59 unsigned int len,
u8 *
out)
84 blkcipher_walk_init(&walk, dst, src, nbytes);
88 if (walk.src.virt.addr != walk.dst.virt.addr)
89 memcpy(walk.dst.virt.addr, walk.src.virt.addr,
99 .setkey = null_hash_setkey,
101 .update = null_update,
102 .finup = null_digest,
103 .digest = null_digest,
106 .cra_name =
"digest_null",
114 .cra_name =
"cipher_null",
119 .cra_u = { .cipher = {
122 .cia_setkey = null_setkey,
123 .cia_encrypt = null_crypt,
124 .cia_decrypt = null_crypt } }
126 .cra_name =
"ecb(cipher_null)",
127 .cra_driver_name =
"ecb-cipher_null",
134 .cra_u = { .blkcipher = {
138 .setkey = null_setkey,
139 .encrypt = skcipher_null_crypt,
140 .decrypt = skcipher_null_crypt } }
142 .cra_name =
"compress_null",
147 .cra_u = { .compress = {
148 .coa_compress = null_compress,
149 .coa_decompress = null_compress } }
156 static int __init crypto_null_mod_init(
void)
166 goto out_unregister_algs;
176 static void __exit crypto_null_mod_fini(
void)