以下内容来自《NIST Special Publication 800-38D November, 2007》- Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC。

AES Galois/Counter Mode

1. 加密步骤:

对称加密模式GCM

对称加密模式GCM

2. 解密步骤

对称加密模式GCM

3. GCTR函数

对称加密模式GCM

4. GHASH函数

对称加密模式GCM

5. 块数据乘法

对称加密模式GCM

6. CTR递增函数

对称加密模式GCM

7. 基础运算

  1. 2.1 = 3, and 4 = 4.
  2. 08 = 00000000
  3. 001 || 10111 = 00110111
  4. 10011 10101 = 00110
  5. len(00010)=5
  6. LSB3(111011010) = 010,  MSB4(111011010) = 1110
  7. X >> 1, is MSBlen(X)(0 || X), 0110111 >> 1 = 0011011.
  8. [39] 8 = 00100111
  9. int(00011010) = 26.

8. 输入输出数据长度:

    输入数据长度限制:

    len(P) 239-256;
    len(A) 264-1;
    1 len(IV) 264-1.

   输出数据长度:

   密文C和明文相同;.

   tag长度可以是: 128, 120, 112, 104, 96,64, 32;

相关文章:

  • 2021-08-08
  • 2022-02-01
  • 2022-02-15
  • 2021-07-07
  • 2021-12-31
  • 2021-09-30
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2021-07-06
  • 2022-01-25
  • 2021-12-31
相关资源
相似解决方案