What is the padding for SHA-512 if the length of the message is: 10024 bits
Answers
Answer:
6/4+@:$+*/6:dgndgkafczhfmcb..fh
Answer:
The response is 270 bits, or 398 bits if you include the 128-bit block. Continue reading for a detailed explanation. If you already understand the ideas, you can skip to the Short Method part and see how to answer the question right away.
Explanation:
A message of any size up to bits can be hashed using the Secure Hash Algorithm - 512 bits to produce a 512-bit value.
This particular algorithm is one of many listed in the Secure Hash Standard (SHS). FIPS PUB 180-4 [Federal Information Processing Standards Publication 180-4] is the official documentation for the SHS. The National Institute of Standards and Technology [NIST] looks after it.
The total number of bits in the message must be a multiple of 1024. Now that we know, we must always attach a "1" and a 128-bit block of the binary message length. The remaining "0" bits are added between the "1" bit and the 128-bit block to complete the message length.
So let's say we need to add zeros. Consequently, must be a multiple of 1024.
then , .
The nearest higher multiple of 1024 for 1779 is 2048.
so, .
Therefore, there would be bits of padding.
Hence , the answer is 270 .
#SPJ5