Computer Science, asked by ChetanAgrawal2588, 9 months ago

What is the padding for SHA-512 if the length of the message is: 10024 bits

Answers

Answered by baalveer10
0

Answer:

6/4+@:$+*/6:dgndgkafczhfmcb..fh

Answered by aditijaink283
0

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 k zeros. Consequently,l+1+k+128 must be a multiple of 1024.

then , l+1+128=1650+1+128=1779.

The nearest higher multiple of 1024 for 1779 is 2048.

so, k=2048-1779=269.

Therefore, there would be 1+269=270 bits of padding.

Hence , the answer is 270 .

#SPJ5

Similar questions