From 5d3ad51e6ce4ee0cb41da434ef43fb9abe0c8a1d Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 26 Sep 2023 16:02:31 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20SM3=E4=B8=AD=E7=9A=84FF2=E5=92=8CGG2?= =?UTF-8?q?=E5=87=BD=E6=95=B0=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SM3中的FF2和GG2函数.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SM3中的FF2和GG2函数.md b/SM3中的FF2和GG2函数.md index d380400..c275e24 100644 --- a/SM3中的FF2和GG2函数.md +++ b/SM3中的FF2和GG2函数.md @@ -4,7 +4,7 @@ $GG2(X, Y, Z) = (X \land Y) \lor (\lnot X \land Z)$ # 等价公式 $FF2(X, Y, Z) = (X \land Y) \bigoplus (X \land Z) \bigoplus (Y \land Z)$ -$GG2(X, Y, Z) = (Y \bigoplus Z) \land X \bigoplus Z$ +$GG2(X, Y, Z) = (X \land Y) \bigoplus (\lnot X \land Z) = (X \land Y) \bigoplus ((1 \bigoplus X) \land Z) = (X \land Y) \bigoplus (X \land Z) \bigoplus Z = (Y \bigoplus Z) \land X \bigoplus Z$ GG2等价公式初次见于[Intel® Integrated Performance Primitives Cryptography](https://github.com/intel/ipp-crypto) # 应用