在从表存储中进行简单检索以查找成功加密的数据集时,我收到以下错误: 解码 OAEP 填充时发生错误 我已经创建了我的密钥并通过 Azure Powershell 成功获取了我的密钥 ID。有关此的 MS 教程有效,但前提是更新和检索在同一个方法调用中。当通过单独的帖子/获取单独调用它们时,我收到上述错误。
我在这个问题上大发雷霆,并开始怀疑它可能是 Azure/Table Storage/KeyVault(加密)中的一个错误。如果有人对此有所了解,我将不胜感激。
RsaKey key = new RsaKey("mykeyid");
TableRequestOptions retrieveOptions = new TableRequestOptions()
{
EncryptionPolicy = new TableEncryptionPolicy(key, null)
};
TableOperation operation = TableOperation.Retrieve(patientId.ToUpper(), questionnaireId.ToUpper());
var answers = answersTable.Execute(operation, retrieveOptions, null);