Skip to content

Commit

Permalink
Support openssl 3.0 newasm linux (#168)
Browse files Browse the repository at this point in the history
* update Linux asm files

---------

Signed-off-by: Jing He <[email protected]>
  • Loading branch information
jinghe-INTC authored Sep 6, 2023
1 parent 75bc8e1 commit ef50655
Show file tree
Hide file tree
Showing 33 changed files with 67,484 additions and 777 deletions.
17 changes: 6 additions & 11 deletions Linux/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,15 @@ make build_generated || exit 1

if [[ "$MITIGATION_OPT" == "LOAD" ]]
then
cp $SGXSSL_ROOT/../openssl_source/Linux/aesni-x86_64.s ./crypto/aes/aesni-x86_64.s
cp $SGXSSL_ROOT/../openssl_source/Linux/keccak1600-x86_64.s ./crypto/sha/keccak1600-x86_64.s
cp $SGXSSL_ROOT/../openssl_source/Linux/rsaz-avx2.s ./crypto/bn/rsaz-avx2.s
cp $SGXSSL_ROOT/../openssl_source/Linux/rsaz-x86_64.s ./crypto/bn/rsaz-x86_64.s
cp $SGXSSL_ROOT/../openssl_source/Linux/x86_64-mont.s ./crypto/bn/x86_64-mont.s
cp $SGXSSL_ROOT/../openssl_source/Linux/x86_64-mont5.s ./crypto/bn/x86_64-mont5.s
cp $SGXSSL_ROOT/../openssl_source/Linux/vpaes-x86_64.s ./crypto/aes/vpaes-x86_64.s
cp $SGXSSL_ROOT/../openssl_source/Linux/x86_64cpuid.s ./crypto/x86_64cpuid.s
cp -rf $SGXSSL_ROOT/../openssl_source/Linux/crypto .
fi
if [[ "$MITIGATION_OPT" == "CF" ]]
then
cp $SGXSSL_ROOT/../openssl_source/Linux/aesni-x86_64.s ./crypto/aes/aesni-x86_64.s
cp $SGXSSL_ROOT/../openssl_source/Linux/vpaes-x86_64.s ./crypto/aes/vpaes-x86_64.s
cp $SGXSSL_ROOT/../openssl_source/Linux/x86_64cpuid.s ./crypto/x86_64cpuid.s
rm -rf ../crypto
cp -rf $SGXSSL_ROOT/../openssl_source/Linux/crypto ..
find ../crypto -type f | xargs sed -i '/load_only/ d'
cp -rf ../crypto .
rm -rf ../crypto
fi

make libcrypto.a || exit 1
Expand Down
8 changes: 0 additions & 8 deletions openssl_source/Linux/README.md

This file was deleted.

Loading

0 comments on commit ef50655

Please sign in to comment.