-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/27/2014 06:31 AM, Steve Dougherty wrote: >> The next step is to write unit-tests and documentation. I am >> also planning on submitting a patch for our OCB nonce length >> problem that will let us upgrade Bouncy Castle to 150, and soon >> 151 which was just had it's last beta released. I made a copy of >> the OCB class from BC149 and put it in crypt. I added a boolean >> to the AEAD classes to decide which version of OCB to use. > > While boolean flags do work, I don't think it scales well. Would it > make sense to have unversioned AEAD classes that give the latest, > with the option of explicitly requesting a version? Something like > AEADInputStream vs. AEADInputStream_v149. Older versions could be > deprecated and removed with time. Maybe an enum instead? > I've written a CryptBucket class that can replace the AEADBucket class, and works directly with AEAD in and out streams. This has an CryptBucketType enum that tells CryptBucket which version of OCB to use. Would it make more sense to change the name of the OldOCB class to OCB_v149? I assume using the oldOCB enum value will be deprecated and eventually removed. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJTrazIAAoJEKzPTx3Y+gGrpAIP/0nCIjqFdbPqvR5Yv31E8IRI rpgCLm+KuMJ9cuy7vFR4fHmSi7NnNRPFCOyS/IC6Nldc2/OVQY9hPMAoYftcBjnR N+9ImdZv1y9ASB1DJCLkwQqt+Nqp5j/+sciN5H8jME7Ybvd+JimObVUAMd4CsITV 6SoUso0aK4qs2lfO5YEFjNOX01U3iNCT7igzL0LOC5j3Jug9oZMRsPXLqZTWa2Xp lYLY4hGl4UAWSQKQD9PmE2BLGa6bO0YVsZIHRHtNDvw2nQK3RgMrallt2xXeJ3lQ O6hoWo5wAU2zu6mwz6XCI87983qMOGwrGNTNKhiO+KfVSfe82YKhuLUfk3Hcn91Y m76+IE+AUCXaGtwq1uuYl86cq9AwV78Ytl+q/4OGc5Q5ya32Etn78fc/tTP0jc4/ 5leBdSGb+WKXNEuQx8KU91P7TFOOrZollBlc8SvFBiTA4dAAXMavuU2xTzcVh2H4 j0y6ErRMzADYXfg5D/xqhhUrXxNUcuD+qWeW5stmVpKJ7UcyJPLrblafz2JszcFu ay9IEt6zzfUKxAfQXEH7ZcbjJ4TvmvtyoF4halU6hhy1b4Y2tNyRR73DFnGOKs/L MsrnDaeYoFpeZDkFpriioM+WZHyzzNbsjf9IXWJMglXDjDTCpftPGccyRNi3hiKz wqFelkCdlJUu/qXNiE3A =2mho -----END PGP SIGNATURE----- _______________________________________________ Devl mailing list Devl@freenetproject.org https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl