本文介绍了在.NET框架中是否支持EAX加密模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道EAX模式是否被支持或如何使用它?下面是一个概述:

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

推荐答案

我不相信这是。

更糟糕的是,EAX的两个构建模块 - 计数器模式加密和CMAC认证代码似乎不被标准的.NET加密库支持。至少,,并且 KeyedHashAlgorithm (对于MAC的.NET的名称)的唯一子类是HMAC和基于TripleDES的MAC(可能是旧的CBC-MAC关闭到CMAC,但不完全)。所以看起来你甚至不能轻易地使用现有组件在一起使用EAX;

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.

最好只使用另一个模式(如CBC)与HMAC结合进行消息认证。

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

这篇关于在.NET框架中是否支持EAX加密模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 17:05