EncryptionUtils.DecryptSymmetricKey Method
Decrypts the symmetric key.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Shared Function DecryptSymmetricKey ( _
cert As X509Certificate2, _
encryptedData As Byte() _
) As Byte()
'Usage
Dim cert As X509Certificate2
Dim encryptedData As Byte()
Dim returnValue As Byte()
returnValue = EncryptionUtils.DecryptSymmetricKey(cert, _
encryptedData)
public static byte[] DecryptSymmetricKey(
X509Certificate2 cert,
byte[] encryptedData
)
public:
static array<unsigned char>^ DecryptSymmetricKey(
X509Certificate2^ cert,
array<unsigned char>^ encryptedData
)
static member DecryptSymmetricKey :
cert:X509Certificate2 *
encryptedData:byte[] -> byte[]
public static function DecryptSymmetricKey(
cert : X509Certificate2,
encryptedData : byte[]
) : byte[]
Parameters
- cert
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
The cert.
- encryptedData
Type: array<System.Byte[]
The encrypted data.
Return Value
Type: array<System.Byte[]
The symmetric key.