Xamarin.Forms中的CngKey.Create中显示“未实现操作”错误

时间:2019-05-15 11:04:06

标签: c# .net xamarin.forms cryptography cng

我开发了Xamarin.Forms应用程序,现在我正在Android设备上调试它(如果重要,它是Android的4.4版本)。我需要对ECDsa使用加密,因此我发现System.Security.Cryptography.Cng是支持System.Security.Cryptography的必要条件。我已经下载了System.Security.Cryptography.Cng版本。我所有项目的Nuget软件包中的4.5.0。因此,我需要创建一对新的密钥来对一些数据进行签名,并且当我尝试这样做时

const section =  {
"my-field-1": {id: 'field-1', value: 1},
"my-field-2": {id: 'field-2', value: 2}
}

section.fields = {...section}
console.log(section)

我收到错误“ System.NotImplementedException:该方法或操作未实现。” 我已经尝试过像CngAlgorithm,参数的许多算法一样,但是仍然有相同的例外。 所以我做错了什么?我知道这可能很愚蠢,确实需要帮助才能找到它。我试图找到同样的问题,但并没有走运。唯一接近的问题是:“ The requested operation is not supported in CngKey.Create”,但这没有帮助。

0 个答案:

没有答案