Open ashwanikadian opened 8 months ago
My observation is that many recent assembler changes were contributed by third parties that have an interest in the particular hardware (e.g Intel). There is some HPUX ia64 support. It seems unlikely that this particular platform would be supported, unless an external PR is submitted that targets the platform. Are there any other comments from @openssl/otc?
Not an OTC comment, but HP-UX is currently on the list of unadopted platforms. If there was a community member willing to volunteer as maintainer, it could be updated to be a community supported platform.
While testing encryption/decryption performance on HP-UX, we observed that OpenSSL does not use any hardware acceleration or assembly code to optimize the encryption/decryption performance. We are testing on OpenSSL 3.0.13 currently.
The hardware acceleration is already being used by OpenSSL on Linux and AIX. The encryption/decryption performance on HP-UX is very very slow due to missing assembly optimizations.
Is there any plan from OpenSSL side to add hardware optimizations on HP-UX in near future or is there any limitation in HP-UX itself that its not possible to optimize encryption/decryption further on it?
Following is the stack trace of our encryption/decryption test application with OpenSSL on Linux, showing the use of assembly code on LINUX.X64 for using hardware acceleration:
0 aesni_xts_encrypt () at crypto/aes/aesni-x86_64.s:1614
1 0x000000000045b651 in aes_xts_cipher (vctx=0xa07fb0, out=0xa0eb30 "", outl=0x7ffffffe9ac8, outsize=8192, in=0x9c62c0 'X' <repeats 200 times>...,
2 0x000000000045b746 in aes_xts_stream_update (vctx=0xa07fb0, out=0xa0eb30 "", outl=0x7ffffffe9ac8, outsize=8192,
3 0x0000000000414a42 in EVP_EncryptUpdate (ctx=0xa07940, out=0xa0eb30 "", outl=0x7ffffffe9bd8, in=0x9c62c0 'X' <repeats 200 times>..., inl=8192)
4 0x000000000040456c in enc_decrypt_test (cipher_ctx1=0xa07940, cipher_ctx2=0xa07a00, key=0x9df0e0 "", iv=0x9cbc00 "",
5 0x0000000000405498 in run (iterations=4, cipher_name=0x9c62a0 "AES-256-XTS", message=0x9c62c0 'X' <repeats 200 times>..., message_len=8192,
6 0x0000000000405dec in main (argc=8, argv=0x7ffffffeb0a8) at main.c:99
Following is the stack trace of our encryption/decryption test application with OpenSSL on HP-UX, showing the use of C code on HPUX.IA64, without any hardware acceleration:
0 CRYPTO_xts128_encrypt (ctx=0x6000000000079310, iv=0x6000000000079080 "",
1 0x40000000003a0650:0 in aes_xts_cipher (vctx=0x6000000000079060,
2 0x400000000039fc30:0 in aes_xts_stream_update (vctx=0x6000000000079060,
3 0x4000000000264d80:0 in EVP_EncryptUpdate (ctx=0x60000000000c1d20,
4 0x4000000000207d70:0 in enc_decrypt_test (cipher_ctx1=0x60000000000c1d20,
5 0x4000000000209130:0 in run (iterations=4,
6 0x400000000020a020:0 in main (argc=8, argv=0x87fffffffffeb5e8) at main.c:90