<div dir="ltr"><div>Hi,</div><div><br></div><div>Stitching aes-cbc with sha1 can result with x2 performance [1].<br></div><div>Is there support for stitched aes-128-hmac-sha1 encrypt-then-mac? This issue [2] says that only mac-then-encrypt is supported in OpenSSL.</div><div><br></div><div>Does this implement mac-then-encrypt and relevant [3]?</div><div>Is it possible to use the same code with just changing the order to achieve encrypt-then-mac?<br></div><div>How can I compile the Perl file to be used from a C program?<br></div><div><br></div><div>[1] <a href="https://software.intel.com/en-us/articles/improving-openssl-performance">https://software.intel.com/en-us/articles/improving-openssl-performance</a></div><div>[2] <a href="https://github.com/openssl/openssl/issues/8785">https://github.com/openssl/openssl/issues/8785</a></div><div>[3] <a href="https://github.com/openssl/openssl/blob/master/crypto/aes/asm/aesni-sha1-x86_64.pl">https://github.com/openssl/openssl/blob/master/crypto/aes/asm/aesni-sha1-x86_64.pl</a></div><div><br></div><div>Thanks<br></div></div>