X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Finclude%2Fcrypto%2Fghash.h;fp=kernel%2Finclude%2Fcrypto%2Fghash.h;h=2a61c9bbab8faf411e0696765e0511c6500821a8;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=0000000000000000000000000000000000000000;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/include/crypto/ghash.h b/kernel/include/crypto/ghash.h new file mode 100644 index 000000000..2a61c9bba --- /dev/null +++ b/kernel/include/crypto/ghash.h @@ -0,0 +1,23 @@ +/* + * Common values for GHASH algorithms + */ + +#ifndef __CRYPTO_GHASH_H__ +#define __CRYPTO_GHASH_H__ + +#include +#include + +#define GHASH_BLOCK_SIZE 16 +#define GHASH_DIGEST_SIZE 16 + +struct ghash_ctx { + struct gf128mul_4k *gf128; +}; + +struct ghash_desc_ctx { + u8 buffer[GHASH_BLOCK_SIZE]; + u32 bytes; +}; + +#endif