Updated SM3中的FF2和GG2函数 (markdown)

Sun Yimin 2023-09-26 16:02:31 +08:00
parent a961620f23
commit 5d3ad51e6c

@ -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)
# 应用