.NET支持AES OFB [英] Does .NET support of AES OFB

查看:138
本文介绍了.NET支持AES OFB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET有一个支持AES OFB加密的类?



我试图使用AesCryptoServiceProvider,但是当我将模式设置为CipherMode.OFB时,我得到了例外:指定的算法无效



AesManaged不允许反馈模式(基于MSDN文档)

解决方案

基本对称算法类仅支持CBC& CFB。



这可以被覆盖,但在AesCryptoServiceProvider类中没有这样做。也许第三方图书馆可能会实施这些密码模式。



*澄清:[我在看着.net v3.5]


Does .NET has a class that supports AES OFB encryption?

I've tried to use AesCryptoServiceProvider but when I set the Mode to CipherMode.OFB I got an exception: Invalid algorithm specified

AesManaged doesn't allow feedback modes (based on the MSDN documentation)

解决方案

The base SymmetricAlgorithm class only supports CipherModes of CBC & CFB.

This can be overridden, but is not done so in the AesCryptoServiceProvider class. Perhaps a 3rd party library may implement these Cipher Modes.

*Clarification: [I was looking at .Net v3.5]

这篇关于.NET支持AES OFB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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