Make context sizes available for statically-allocated structures

This commit is contained in:
Michael Brown
2007-02-01 05:48:56 +00:00
parent d467552367
commit cc8f9e4b7f
4 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ static void sha1_final ( void *ctx, void *out ) {
struct crypto_algorithm sha1_algorithm = {
.name = "sha1",
.ctxsize = sizeof ( SHA1_CTX ),
.ctxsize = SHA1_CTX_SIZE,
.blocksize = 64,
.digestsize = SHA1_SIZE,
.init = sha1_init,