libcli/smb: prefer AES128_CCM
authorStefan Metzmacher <metze@samba.org>
Mon, 17 Aug 2015 06:56:43 +0000 (08:56 +0200)
committerRalph Böhme <slow@samba.org>
Mon, 17 Aug 2015 15:43:36 +0000 (17:43 +0200)
commit05dbd3b47a728acada971b545df458ae0e082ec5
tree05c405f9865d5f9eddc5f32c956d0e9429e35369
parentdc2d5ccd56ff8c59f3686a652ec3082069914bb4
libcli/smb: prefer AES128_CCM

Callgrind showed that we use 28,165,720,719 cpu cycles to send
a 100MB file to a client using aes-ccm.

With aes-gcm this is raises up to 723,094,413,831 cpu cycles.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11451

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/smb/smbXcli_base.c