mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-10 19:16:18 +08:00
Updated SM3中的FF2和GG2函数 (markdown)
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)
|
||||
# 应用
|
||||
|
Loading…
x
Reference in New Issue
Block a user