libcli/smb: prefer AES128_CCM
commitef11f8d2674b750c35456379db17d55d8744cd3c
authorStefan Metzmacher <metze@samba.org>
Mon, 17 Aug 2015 06:56:43 +0000 (17 08:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 17 Aug 2015 20:30:20 +0000 (17 22:30 +0200)
tree04ec01acf44cb57075d9b6a71dd921e9a7270ffe
parent9da9cf524a03bce8f54aed31ad4317d42a884e1f
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>
(cherry picked from commit 05dbd3b47a728acada971b545df458ae0e082ec5)
libcli/smb/smbXcli_base.c