GmSSL
GmSSL copied to clipboard
Fix incrementing function of gcm mode
- 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