Interface IXmlKeyEncryptionExtension
- Namespace
- ComponentSpace.Saml2.XmlSecurity.Encryption
- Assembly
- ComponentSpace.Saml2.dll
Supports XML key encryption extensions.
public interface IXmlKeyEncryptionExtension : IXmlEncryptionExtension
- Inherited Members
Methods
DecryptSymmetricKey(EncryptedKey, AsymmetricAlgorithm, string)
Decrypts the symmetric key using the specified asymmetric key and key encryption algorithm
byte[] DecryptSymmetricKey(EncryptedKey encryptedKey, AsymmetricAlgorithm keyDecryptingKey, string keyEncryptionAlgorithm)
Parameters
encryptedKeyEncryptedKeyThe encrypted symmetric key.
keyDecryptingKeyAsymmetricAlgorithmThe asymmetric key decrypting key.
keyEncryptionAlgorithmstringThe key encryption algorithm.
Returns
- byte[]
The decrypted symmetric key.
EncryptSymmetricKey(byte[], AsymmetricAlgorithm, string, string, string)
Encrypts the symmetric key using the specified asymmetric key and key encryption algorithm.
byte[] EncryptSymmetricKey(byte[] symmetricKey, AsymmetricAlgorithm keyEncryptingKey, string keyEncryptionAlgorithm, string digestMethod, string maskGenerationFunction)
Parameters
symmetricKeybyte[]The symmetric key.
keyEncryptingKeyAsymmetricAlgorithmThe asymmetric key encrypting key.
keyEncryptionAlgorithmstringThe key encryption algorithm.
digestMethodstringThe digest method.
maskGenerationFunctionstringThe mask generation function.
Returns
- byte[]
The encrypted symmetric key.
Update(XmlElement, string, string, string)
Updates the encrypted data XML, if required.
void Update(XmlElement encryptedDataElement, string keyEncryptionAlgorithm, string digestMethod, string maskGenerationFunction)
Parameters
encryptedDataElementXmlElementThe encrypted data XML.
keyEncryptionAlgorithmstringThe key encryption algorithm.
digestMethodstringThe digest method.
maskGenerationFunctionstringThe mask generation function.