2

It is fragment of pseudocode algorithm SHA2 from wikipedia:

break message into 512-bit chunks
for each chunk
    create a 64-entry message schedule array w[0..63] of 32-bit words

For me, it means that time of working SHA2 algorithm depends on size of input word. So the more input word is, the longer time of working SHA2 is.

Am I wrong ?

SDasd
  • 433
  • 4
  • 7

1 Answers1

3

Yes, this is true, though the timing differences between two short messages (e.g. 100 and 1000 bytes) are negligible. Computing the SHA256 hash of a gigabyte of data understandably takes much longer than computing the SHA256 hash of a few hundred bytes.

Polynomial
  • 135,049
  • 43
  • 306
  • 382