我可以在.NET中使用AES的CTR模式? [英] Can I use AES in CTR mode in .NET?

查看:712
本文介绍了我可以在.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.

我可以使用任何一种模式,安全地实施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.

请参阅<一href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged.aesmanaged%28v=vs.90%29.aspx#2">here对于一些意见。

这篇关于我可以在.NET中使用AES的CTR模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆