X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsha512.h;h=ed12d545c2119ad05d134f2eb7db519620ae85d9;hb=7b01a885219f9d3870cedcc5c049a80756271538;hp=84fe5591f04deea4113c760c749b8fb746c59786;hpb=c0e92a8bc2db0f1ea4df59b1d6812323b0e58233;p=gnulib.git diff --git a/lib/sha512.h b/lib/sha512.h index 84fe5591f..ed12d545c 100644 --- a/lib/sha512.h +++ b/lib/sha512.h @@ -32,8 +32,8 @@ struct sha512_ctx u64 buffer[32]; }; -enum { SHA384_DIGEST_SIZE = 48 }; -enum { SHA512_DIGEST_SIZE = 64 }; +enum { SHA384_DIGEST_SIZE = 384 / 8 }; +enum { SHA512_DIGEST_SIZE = 512 / 8 }; /* Initialize structure containing state of computation. */ extern void sha512_init_ctx (struct sha512_ctx *ctx);