11 #include <linux/module.h>
15 #define GHASH_BLOCK_SIZE 16
16 #define GHASH_DIGEST_SIZE 16
32 memset(dctx, 0,
sizeof(*dctx));
38 const u8 *
key,
unsigned int keylen)
54 const u8 *
src,
unsigned int srclen)
81 ret = crypt_s390_kimd(
KIMD_GHASH, ctx, src, n);
117 ghash_flush(ctx, dctx);
126 .update = ghash_update,
127 .final = ghash_final,
128 .setkey = ghash_setkey,
132 .cra_driver_name =
"ghash-s390",
141 static int __init ghash_mod_init(
void)
150 static void __exit ghash_mod_exit(
void)