GmSSL icon indicating copy to clipboard operation
GmSSL copied to clipboard

Fix incrementing function of gcm mode

Open Pencil-Yao opened this issue 2 years ago • 0 comments

  • nist 800-38d specify inc32(X) as incrementing function in gctr.
  • inc32(X) means: The output of incrementing the right-most 32 bits
  • of the bit string X, regarded as the binary representation of an *integer, by 1 modulo 2s.

nist 800-38d 6.2 Incrementing Function & 6.5 GCTR Function

Pencil-Yao avatar Dec 19 '23 08:12 Pencil-Yao