SmallLars / openssl-ccm

Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM)
rubygems.org/gems/openssl-ccm
MIT License
2 stars 6 forks source link

Add support for AES-192-CBC and AES-256-CBC #3

Closed danilbaz closed 9 years ago

danilbaz commented 9 years ago

CCM must be used with 128 bits block and is restricted to crypto algorithm who use 128 bits key. AES-256-CBC for example also used 128 bits block but 256 bits key

SmallLars commented 9 years ago

Would be also nice to have at least one testvector for every bitwidth.

danilbaz commented 9 years ago

I added some test case for aes256 from https://github.com/weidai11/cryptopp/blob/master/TestVectors/ccm.txt , do you think this is a valid source? Or test case generated with an other tool is a valid source?

SmallLars commented 9 years ago

Thank you, I think that is a valid source, yes. For me its only important to have a test case like this to be sure the support for bigger key length won't get removed or broken in future.

Maybe you can finally do a git rebase -i HEAD~3 and force push so I can merge a single commit with your first commit message?