Algorithm
暗号化された XMLの要素の属性を解析し、データの復号化に使用するEncryptionMethod
正しいAsymmetricAlgorithm
/を識別できる組み込みの .NET API はありますか?SymmetricAlgorithm
以下は、復号化する暗号化された XML スニペットの例です。
<xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
<xenc:CipherData>
<xenc:CipherValue>fWDq0kmaii...U9Tng==</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
私は .NET クラスを使用してきましたが、属性で見つかった URI を解析して適切なものを選択するのSystem.Security.Cryptography.Xml.EncryptedData
に役立つサブプロパティまたはメソッドが表示されませんでした(この場合は、ofおよびof を使用)。Algorithm
SymmetricAlgorithm
System.Security.Cryptography.RijndaelManaged
CipherMode
CBC
BlockSize
128
暗号化された XML の解析から、必要なAsymmmetricAlgorithm
/を正しく識別して構成できる組み込みの .NET API メソッドはありますか?SymmetricAlgorithm