diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2023-02-07 18:55:17 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2023-02-07 18:55:17 +0000 |
commit | f1cf49002dbb0b1976ef1ebd8e689a7825e3e06f (patch) | |
tree | 6b689b6d7817a14a18e418b5cff00ee4da3acd68 | |
parent | fb3134558138e52322ebcdf66fee8288ee308d78 (diff) | |
download | src-f1cf49002dbb0b1976ef1ebd8e689a7825e3e06f.tar.gz src-f1cf49002dbb0b1976ef1ebd8e689a7825e3e06f.zip |
-rw-r--r-- | sys/crypto/openssl/amd64/e_padlock-x86_64.S | 2 | ||||
-rw-r--r-- | sys/crypto/openssl/i386/e_padlock-x86.S | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/crypto/openssl/amd64/e_padlock-x86_64.S b/sys/crypto/openssl/amd64/e_padlock-x86_64.S index de2866844652..b19cf1d0b2d3 100644 --- a/sys/crypto/openssl/amd64/e_padlock-x86_64.S +++ b/sys/crypto/openssl/amd64/e_padlock-x86_64.S @@ -45,6 +45,8 @@ padlock_capability: .align 16 padlock_key_bswap: movl 240(%rdi),%edx + incl %edx + shll $2,%edx .Lbswap_loop: movl (%rdi),%eax bswapl %eax diff --git a/sys/crypto/openssl/i386/e_padlock-x86.S b/sys/crypto/openssl/i386/e_padlock-x86.S index 4ddc50bcaf58..58085b33679b 100644 --- a/sys/crypto/openssl/i386/e_padlock-x86.S +++ b/sys/crypto/openssl/i386/e_padlock-x86.S @@ -69,6 +69,8 @@ padlock_key_bswap: .L_padlock_key_bswap_begin: movl 4(%esp),%edx movl 240(%edx),%ecx + incl %ecx + shll $2,%ecx .L003bswap_loop: movl (%edx),%eax bswap %eax @@ -1109,6 +1111,8 @@ padlock_key_bswap: .L_padlock_key_bswap_begin: movl 4(%esp),%edx movl 240(%edx),%ecx + incl %ecx + shll $2,%ecx .L003bswap_loop: movl (%edx),%eax bswap %eax |