X-Git-Url: http://git.tdb.fi/?p=libs%2Fcrypto.git;a=blobdiff_plain;f=source%2Fsha2.h;fp=source%2Fsha2.h;h=060b8d79af5cc2d72010821957dd28d88645faf9;hp=ed5c4fe36d0a210dd8c24e740565eaa888c17941;hb=52c9b0b8aacb973b6138ba0eb0e36e0c0cc23f80;hpb=6511a62c3cec0a64bbdd7ac8e3588d39c164af09 diff --git a/source/sha2.h b/source/sha2.h index ed5c4fe..060b8d7 100644 --- a/source/sha2.h +++ b/source/sha2.h @@ -43,6 +43,7 @@ struct SHA2_256Constants WORD_SIZE = sizeof(WordType), BLOCK_SIZE = 64, // 512 bits DIGEST_SIZE = 32, // 256 bits + MIN_PADDING = 8, N_ROUNDS = 64 }; @@ -60,6 +61,7 @@ struct SHA2_512Constants WORD_SIZE = sizeof(WordType), BLOCK_SIZE = 128, // 1024 bits DIGEST_SIZE = 64, // 512 bits + MIN_PADDING = 16, N_ROUNDS = 80 };