From 28eed63f34855d2de428d81b532de4aa37031d25 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Mon, 21 Aug 2023 14:48:47 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E6=97=A0=E8=BF=9B=E4=BD=8D=E4=B9=98?= =?UTF-8?q?=E6=B3=95=E5=92=8CGHASH=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 无进位乘法和GHASH.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/无进位乘法和GHASH.md b/无进位乘法和GHASH.md index cf62c2d..55b7e6c 100644 --- a/无进位乘法和GHASH.md +++ b/无进位乘法和GHASH.md @@ -40,15 +40,15 @@ $[A_1 : A_0] \cdot [B_1 : B_0] = [C_1:C_0 \oplus C_1 \oplus D_1 \oplus E_1 : D_1 * $[D_1:D_0] = [B_0 \oplus C_1 : B_1 \oplus C_0]$ * Output: $[D_1 \oplus X_3 : D_0 \oplus X_2]$ ```asm -; Input is in T1:T7 -vmodqa T3, [W] -vpclmulqda T2, T3, T7, 0x01 -vpshufd T4, T7, 78 +; Input is in T1:T0 +vmodqa T3, [W] ; poly +vpclmulqda T2, T3, T0, 0x01 +vpshufd T4, T0, 78 vpxor T4, T4, T2 vpclmulqda T2, T3, T4, 0x01 vpshufd T4, T4, 78 vpxor T4, T4, T2 -vpxor T1, T4 ; result in T1 +vpxor T1, T1, T4 ; result in T1 ``` # 参考