Dne petek, 08. marec 2013 16:03:06 UTC+1 je oseba matejk napisala: > > Does AES CCM have a limitation of 16 MB for message size? > > I got this exception when trying to encrypt 100 MB file: > > message length 104857600 exceeds the maximum of 16777215 > > Is there any way to encrypt files larger than 16 MB? >
I was not aware that nonce size has direct affect on max message size. After changing nonce size from 12 to 10 much larger files can be encrypted. Max message size (for reference): *nonce (IV) len* CCM L *Max message size (MB)* 7 8 17592186044416 8 7 68719476736 9 6 268435456 10 5 1048576 11 4 4096 12 3 16 13 2 0.0625 Regards, Matej -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
