Share via


EncryptionUtils.EncryptSymmetricKey Method

Encrypts the symmetric key.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

'Declaration
Public Shared Function EncryptSymmetricKey ( _
    cert As X509Certificate2, _
    aes As SymmetricAlgorithm _
) As Byte()
'Usage
Dim cert As X509Certificate2 
Dim aes As SymmetricAlgorithm 
Dim returnValue As Byte()

returnValue = EncryptionUtils.EncryptSymmetricKey(cert, _
    aes)
public static byte[] EncryptSymmetricKey(
    X509Certificate2 cert,
    SymmetricAlgorithm aes
)
public:
static array<unsigned char>^ EncryptSymmetricKey(
    X509Certificate2^ cert, 
    SymmetricAlgorithm^ aes
)
static member EncryptSymmetricKey : 
        cert:X509Certificate2 * 
        aes:SymmetricAlgorithm -> byte[] 
public static function EncryptSymmetricKey(
    cert : X509Certificate2, 
    aes : SymmetricAlgorithm
) : byte[]

Parameters

Return Value

Type: array<System.Byte[]
The symmetric key.

See Also

Reference

EncryptionUtils Class

Microsoft.WindowsAzure.MediaServices.Client Namespace