This patch updates aes-ppc.pl to generate code that byte swaps the input
data when needed,

Signed-off-by: Marcelo Cerri <[email protected]>
---
 crypto/aes/asm/aes-ppc.pl | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

...
 .align 4
 Lppc_AES_encrypt_compact:
+___
+       fix_byte_order($s0,$acc00);
+       fix_byte_order($s1,$acc00);
+       fix_byte_order($s2,$acc00);
+       fix_byte_order($s3,$acc00);
+$code.=<<___;

If input block crosses page boundary, then at this point data is in correct byte order. Please verify http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c944f8170358ecce419045b919be604844369e36 and confirm if it works.

Once again, at the moment I'm not applying patch to Configure as I'd like to get feedback and resolve eventual problems before we do that.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to