Microsoft Cryptography下一代CNG Windows 7计算机 [英] Microsoft Cryptography Next Generation CNG Windows 7 machine

查看:62
本文介绍了Microsoft Cryptography下一代CNG Windows 7计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,

Hi Guys,


我开发了一个样本使用bcrypt.h头文件在C ++中使用Microsoft Cryptography Next Generation(CNG)加密应用程序。我尝试使用AES 128位CFB模式。我的应用程序生成的密文不同于OpenSSL CFB API生成的密码文本
。 CNG和OpenSSL之间的纯文本,密钥和IV都是相同的。

I developed a sample encryption application using Microsoft Cryptography Next Generation (CNG) in C++ using bcrypt.h header file. I tried using AES 128bit CFB mode. The cipher text generated by my application is different from cipher text generated by OpenSSL CFB API. The plain text, key and IV are all same between CNG and OpenSSL.


是否有任何额外的属性要在CNG中设置为根据OpenSSL产生确切的输出? 

Is there any extra property to be set in CNG to produce exact output as per OpenSSL? 



我按照下面给出的示例&https://msdn.microsoft.com/en-us/library/aa376234(v = vs.85).aspx并将CBC更改为CFB。

I followed the example given below https://msdn.microsoft.com/en-us/library/aa376234(v=vs.85).aspx and just changed CBC to CFB.


示例是否支持CFB模式?

Will the example support CFB mode?

推荐答案


大家好,

Hi Guys,


我使用bcrypt.h头文件在C ++中使用Microsoft Cryptography Next Generation(CNG)开发了一个示例加密应用程序。我尝试使用AES 128bit CFB模式。我的应用程序生成的密文不同于OpenSSL CFB API生成的密码文本
。纯文本,密钥和IV在CNG和OpenSSL之间都是相同的。

I developed a sample encryption application using Microsoft Cryptography Next Generation (CNG) in C++ using bcrypt.h header file. I tried using AES 128bit CFB mode. The cipher text generated by my application is different from cipher text generated by OpenSSL CFB API. The plain text, key and IV are all same between CNG and OpenSSL.


是否有任何额外的属性要在CNG中设置以根据OpenSSL生成确切的输出? 

Is there any extra property to be set in CNG to produce exact output as per OpenSSL? 



我按照下面的例子给出了https://msdn.microsoft.com/en-us/library/aa376234(v = vs.85).aspx并且刚刚将CBC更改为CFB。

I followed the example given below https://msdn.microsoft.com/en-us/library/aa376234(v=vs.85).aspx and just changed CBC to CFB.


示例是否支持CFB模式?

Will the example support CFB mode?


这篇关于Microsoft Cryptography下一代CNG Windows 7计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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