diff options
| author | miod <> | 2015-07-19 02:21:41 +0000 | 
|---|---|---|
| committer | miod <> | 2015-07-19 02:21:41 +0000 | 
| commit | fd6d9bfbcd2deccd5544fc90cd1f003d1653b2cd (patch) | |
| tree | c789a564c1c5369e7f3eaaddcb23cc929d999b05 | |
| parent | 2389220f593f7efc734a6f4f86935806b2c4f8eb (diff) | |
| download | openbsd-fd6d9bfbcd2deccd5544fc90cd1f003d1653b2cd.tar.gz openbsd-fd6d9bfbcd2deccd5544fc90cd1f003d1653b2cd.tar.bz2 openbsd-fd6d9bfbcd2deccd5544fc90cd1f003d1653b2cd.zip | |
Replace `.byte 0x48,0x83,0xEC,0x08' with `sub \$8,%rsp' which is exactly the
same four bytes, unobfuscated.
| -rw-r--r-- | src/lib/libcrypto/aes/asm/aesni-x86_64.pl | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/aes/asm/aesni-x86_64.pl | 4 | 
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 | 
