From 576bb64d83bf0b04f858f4b0faeac9420e65f745 Mon Sep 17 00:00:00 2001 From: "[GGSuchao]" <[1500062807@pku.edu.cn]> Date: Thu, 6 Jul 2017 12:22:02 +0800 Subject: [PATCH] add sm2 --- crypto/sm2/miracl/mrmuldv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/sm2/miracl/mrmuldv.c b/crypto/sm2/miracl/mrmuldv.c index 0194628f..1f11baab 100644 --- a/crypto/sm2/miracl/mrmuldv.c +++ b/crypto/sm2/miracl/mrmuldv.c @@ -12,7 +12,7 @@ int a,b,c,m,*rp; ASM ("movl %eax,a"); ASM ("mull b"); ASM ("addl %eax,c"); - ASM ("adcl %edx,0h"); + ASM ("adcl %edx,$0h"); ASM ("divl m"); ASM ("movl %ebx,rp"); ASM ("movl (%ebx),%edx"); @@ -34,7 +34,7 @@ int a,b,c,*rp; ASM ("movl %eax,a"); ASM ("mull b"); ASM ("addl %eax,c"); - ASM ("adcl %edx,0h"); + ASM ("adcl %edx,$0h"); ASM ("movl %ebx,rp"); ASM ("movl (%ebx),%eax"); ASM ("movl %eax,%edx"); @@ -47,10 +47,10 @@ int a,b,*c,*rp; ASM ("mull b"); ASM ("movl %ebx,c"); ASM ("addl %eax,(%ebx)"); - ASM ("adcl %edx,0h"); + ASM ("adcl %edx,$0h"); ASM ("movl %esi,rp"); ASM ("addl %eax,(esi)"); - ASM ("adcl %edx,0h"); + ASM ("adcl %edx,$0h"); ASM ("movl (%esi),%eax"); ASM ("movl (%ebx),%edx"); }