From 1d4d7ff274760637b8abd835ccbb7f5e24883af7 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 21 Feb 2015 19:31:34 +0100 Subject: [PATCH] Add missing asm instruction to correct sha256 calculation in avx mode --- pkg/utils/crypto/sha256/sha256-avx-asm.S | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/utils/crypto/sha256/sha256-avx-asm.S b/pkg/utils/crypto/sha256/sha256-avx-asm.S index de6763c4d..435c69ab1 100644 --- a/pkg/utils/crypto/sha256/sha256-avx-asm.S +++ b/pkg/utils/crypto/sha256/sha256-avx-asm.S @@ -451,6 +451,7 @@ a = TMP_ or y2, y0 # y0 = MAJ = (a|c)&b)|(a&c) add y0, h # h = h + S1 + CH + k + w + S0 + MAJ ROTATE_ARGS + mov e, y0 # y0 = e mov a, y1 # y1 = a MY_ROR (25-11), y0 # y0 = e >> (25-11) xor e, y0 # y0 = e ^ (e >> (25-11))