AES crypto performance improvements

Stefan Metzmacher metze at
Fri Aug 14 13:28:37 UTC 2015

Am 13.08.2015 um 23:22 schrieb Stefan Metzmacher:
> Hi,
> while debugging poor performance of our SMB3 crypto
> I developed the following performance improvements.
> The aes_block_xor() improved by a factor of ~10.
> The aes_block_[r|l]shift() functions improved by 25%.
> Please review and push.
> The real solution will be to use hardware support,
> I've extended the work from Simo in the following branch
> (ignore the unrelated and directly reverted commits on top)
> But I'm not that happy with the abstraction yet.

There's a regression in the aes_ccm_128 optimization because that doesn't
have test cases... I'm working on it.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the samba-technical mailing list