Interface IXmlKeyEncryptionExtension
Supports XML key encryption extensions.
Inherited Members
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 |
---|---|---|
EncryptedKey | encryptedKey | The encrypted symmetric key. |
AsymmetricAlgorithm | keyDecryptingKey | The asymmetric key decrypting key. |
string | keyEncryptionAlgorithm | The key encryption algorithm. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
byte[] | symmetricKey | The symmetric key. |
AsymmetricAlgorithm | keyEncryptingKey | The asymmetric key encrypting key. |
string | keyEncryptionAlgorithm | The key encryption algorithm. |
string | digestMethod | The digest method. |
string | maskGenerationFunction | The mask generation function. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
XmlElement | encryptedDataElement | The encrypted data XML. |
string | keyEncryptionAlgorithm | The key encryption algorithm. |
string | digestMethod | The digest method. |
string | maskGenerationFunction | The mask generation function. |