mirror of
https://github.com/emmansun/gmsm.git
synced 2025-05-11 03:26:17 +08:00
Updated SM3中的FF2和GG2函数 (markdown)
parent
3d798d3588
commit
8ccd55ec36
@ -7,7 +7,7 @@ $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,其等价公式相比原来的公式,因其简单,具有一点点性能优势(不明显)。
|
||||
特别是GG2,其等价公式相比原来的公式,因其简单,具有一点点性能优势(不明显),也可以省一个寄存器。
|
||||
原公式:
|
||||
```asm
|
||||
MOVL f, y3; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user