Show / Hide Table of Contents

Interface IXmlKeyEncryptionExtension

Supports XML key encryption extensions.

Inherited Members
IXmlEncryptionExtension.IsSupported(String)
Namespace: ComponentSpace.Saml2.XmlSecurity.Encryption
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IXmlKeyEncryptionExtension : IXmlEncryptionExtension

Methods

DecryptSymmetricKey(EncryptedKey, AsymmetricAlgorithm, String)

Decrypts the symmetric key using the specified asymmetric key and key encryption algorithm

Declaration
byte[] DecryptSymmetricKey(EncryptedKey encryptedKey, AsymmetricAlgorithm keyDecryptingKey, string keyEncryptionAlgorithm)
Parameters
Type Name Description
System.Security.Cryptography.Xml.EncryptedKey encryptedKey

The encrypted symmetric key.

System.Security.Cryptography.AsymmetricAlgorithm keyDecryptingKey

The asymmetric key decrypting key.

System.String keyEncryptionAlgorithm

The key encryption algorithm.

Returns
Type Description
System.Byte[]

The decrypted symmetric key.

EncryptSymmetricKey(Byte[], AsymmetricAlgorithm, String, String, String)

Encrypts the symmetric key using the specified asymmetric key and key encryption algorithm.

Declaration
byte[] EncryptSymmetricKey(byte[] symmetricKey, AsymmetricAlgorithm keyEncryptingKey, string keyEncryptionAlgorithm, string digestMethod, string maskGenerationFunction)
Parameters
Type Name Description
System.Byte[] symmetricKey

The symmetric key.

System.Security.Cryptography.AsymmetricAlgorithm keyEncryptingKey

The asymmetric key encrypting key.

System.String keyEncryptionAlgorithm

The key encryption algorithm.

System.String digestMethod

The digest method.

System.String maskGenerationFunction

The mask generation function.

Returns
Type Description
System.Byte[]

The encrypted symmetric key.

Update(XmlElement, String, String, String)

Updates the encrypted data XML, if required.

Declaration
void Update(XmlElement encryptedDataElement, string keyEncryptionAlgorithm, string digestMethod, string maskGenerationFunction)
Parameters
Type Name Description
System.Xml.XmlElement encryptedDataElement

The encrypted data XML.

System.String keyEncryptionAlgorithm

The key encryption algorithm.

System.String digestMethod

The digest method.

System.String maskGenerationFunction

The mask generation function.

In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.