我可以在.NET中使用AES的CTR模式?模式、NET、AES、CTR

由网友(不如去流浪)分享简介:.NET的AES不直接实现的点击率。它不仅实现了C​​BC,CFB,CTS,欧洲央行和OFB。.NET's AES does not implement CTR directly. It only implements CBC, CFB, CTS, ECB and OFB.我可以使用任何一种模式,安全地实施CT...

.NET的AES不直接实现的点击率。它不仅实现了C​​BC,CFB,CTS,欧洲央行和OFB。

.NET's AES does not implement CTR directly. It only implements CBC, CFB, CTS, ECB and OFB.

我可以使用任何一种模式,安全地实施CTR在他们身边,或是否需要使用完全不同的库?

Can I use any of these modes and securely implement CTR around them, or do I need to use a different library altogether?

推荐答案

是的,你可以使用.NET的AES ECB模式和一个柜台,是你自己初始化和增量,对于每个加密块建一个点击率。

Yes, you can build a CTR using .NET's AES in ECB mode and a counter, that you yourself initialize and increment, for each block encrypted.

这方面的一个例子是WinZipAes加密流,这是开源DotNetZip的一部分。 WinZip的指定使用AES加密技术加密的ZIP文件,在CTR模式下使用AES。 DotNetZip实现了使用欧洲央行和计数器CTR模式。

An example of this is the WinZipAes encryption stream, which is part of the open-source DotNetZip. WinZip specifies the use of AES encryption for encrypted ZIP files, using AES in CTR mode. DotNetZip implements the CTR mode using ECB and the counter.

请参阅here对于一些意见。

阅读全文

相关推荐

最新文章