summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiod <>2015-07-19 02:21:41 +0000
committermiod <>2015-07-19 02:21:41 +0000
commit7d27977505dcf038edc3626f5af535a007e188a1 (patch)
treec789a564c1c5369e7f3eaaddcb23cc929d999b05 /src
parent8f0f19f3e1d975fa31a75cf440fbacfd73167ecb (diff)
downloadopenbsd-7d27977505dcf038edc3626f5af535a007e188a1.tar.gz
openbsd-7d27977505dcf038edc3626f5af535a007e188a1.tar.bz2
openbsd-7d27977505dcf038edc3626f5af535a007e188a1.zip
Replace `.byte 0x48,0x83,0xEC,0x08' with `sub \$8,%rsp' which is exactly the
same four bytes, unobfuscated.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/aes/asm/aesni-x86_64.pl4
-rw-r--r--src/lib/libssl/src/crypto/aes/asm/aesni-x86_64.pl4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/aes/asm/aesni-x86_64.pl b/src/lib/libcrypto/aes/asm/aesni-x86_64.pl
index 0dbb194b8d..a53204af6c 100644
--- a/src/lib/libcrypto/aes/asm/aesni-x86_64.pl
+++ b/src/lib/libcrypto/aes/asm/aesni-x86_64.pl
@@ -2462,7 +2462,7 @@ $code.=<<___;
2462.type ${PREFIX}_set_decrypt_key,\@abi-omnipotent 2462.type ${PREFIX}_set_decrypt_key,\@abi-omnipotent
2463.align 16 2463.align 16
2464${PREFIX}_set_decrypt_key: 2464${PREFIX}_set_decrypt_key:
2465 .byte 0x48,0x83,0xEC,0x08 # sub rsp,8 2465 sub \$8,%rsp
2466 call __aesni_set_encrypt_key 2466 call __aesni_set_encrypt_key
2467 shl \$4,$bits # rounds-1 after _aesni_set_encrypt_key 2467 shl \$4,$bits # rounds-1 after _aesni_set_encrypt_key
2468 test %eax,%eax 2468 test %eax,%eax
@@ -2513,7 +2513,7 @@ $code.=<<___;
2513.align 16 2513.align 16
2514${PREFIX}_set_encrypt_key: 2514${PREFIX}_set_encrypt_key:
2515__aesni_set_encrypt_key: 2515__aesni_set_encrypt_key:
2516 .byte 0x48,0x83,0xEC,0x08 # sub rsp,8 2516 sub \$8,%rsp
2517 mov \$-1,%rax 2517 mov \$-1,%rax
2518 test $inp,$inp 2518 test $inp,$inp
2519 jz .Lenc_key_ret 2519 jz .Lenc_key_ret
diff --git a/src/lib/libssl/src/crypto/aes/asm/aesni-x86_64.pl b/src/lib/libssl/src/crypto/aes/asm/aesni-x86_64.pl
index 0dbb194b8d..a53204af6c 100644
--- a/src/lib/libssl/src/crypto/aes/asm/aesni-x86_64.pl
+++ b/src/lib/libssl/src/crypto/aes/asm/aesni-x86_64.pl
@@ -2462,7 +2462,7 @@ $code.=<<___;
2462.type ${PREFIX}_set_decrypt_key,\@abi-omnipotent 2462.type ${PREFIX}_set_decrypt_key,\@abi-omnipotent
2463.align 16 2463.align 16
2464${PREFIX}_set_decrypt_key: 2464${PREFIX}_set_decrypt_key:
2465 .byte 0x48,0x83,0xEC,0x08 # sub rsp,8 2465 sub \$8,%rsp
2466 call __aesni_set_encrypt_key 2466 call __aesni_set_encrypt_key
2467 shl \$4,$bits # rounds-1 after _aesni_set_encrypt_key 2467 shl \$4,$bits # rounds-1 after _aesni_set_encrypt_key
2468 test %eax,%eax 2468 test %eax,%eax
@@ -2513,7 +2513,7 @@ $code.=<<___;
2513.align 16 2513.align 16
2514${PREFIX}_set_encrypt_key: 2514${PREFIX}_set_encrypt_key:
2515__aesni_set_encrypt_key: 2515__aesni_set_encrypt_key:
2516 .byte 0x48,0x83,0xEC,0x08 # sub rsp,8 2516 sub \$8,%rsp
2517 mov \$-1,%rax 2517 mov \$-1,%rax
2518 test $inp,$inp 2518 test $inp,$inp
2519 jz .Lenc_key_ret 2519 jz .Lenc_key_ret