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

问题描述

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

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

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

推荐答案

我不认为它是。

和更糟糕的是,对EAX两个积木 - 计数器模式加密和认证CMAC code - 似乎也不能由标准的.NET加密库的支持。至少,CTR模式不包括在 CipherMode枚举 KeyedHashAlgorithm 的只有子类(.NET的名称的MAC)是HMAC和TripleDES的,基于MAC(可能是一个古老的CBC-MAC,这是接近-ish到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-19 06:56