Is EAX crypto mode supported in the .NET framework?

╄→гoц情女王★ 提交于 2019-12-23 14:03:17

问题


Does anyone know if EAX mode is supported or how to use it? Here is an overview:

http://en.wikipedia.org/wiki/EAX_mode


回答1:


I don't believe that it is.

And to make matters worse, the two building blocks of EAX - counter mode encryption and the CMAC authentication code - also do not seem to be supported by the standard .NET crypto libraries. At least, CTR mode isn't included in the CipherMode enumeration, and the only subclasses of KeyedHashAlgorithm (.NET's name for MACs) are HMAC and a TripleDES-based MAC (probably an old CBC-MAC, which is close-ish to CMAC but not quite). So it seems you couldn't even easily cobble together an EAX using existing components; you'd seemingly have to implement everything from scratch.

It may be better to just use another mode (like CBC) in combination with an HMAC for message authentication.




回答2:


The bouncycastle C# crypto library supports GCM and possibly other AEAD ciphers.



来源:https://stackoverflow.com/questions/3046535/is-eax-crypto-mode-supported-in-the-net-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!