All internal exports: Zeroize XMM registers that may contain secret
data before returning. (At 4x pxors per cycle, the overhead is
negligible.)

_ctr32: Zeroize $key0 and $ctr.

aesni_ecb_encrypt: If $win64, saves and restores xmm registers with
callee-save status under the Win64 ABI. The code is adapted fairly
directly from _ctr32.

The Win64 fix is untested! I don't have a Windows development machine
at the moment.

(By the way, is OPENSSL_wipe_cpu used or tested anywhere?)

Attachment: 0001-aesni-x86_64.pl-Win64-ABI-fix-zeroize-registers.patch
Description: Binary data

Reply via email to