CommonEncryption.EncryptContentKeyToCertificate Method
Encrypts the content key to certificate.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Shared Function EncryptContentKeyToCertificate ( _
cert As X509Certificate2, _
contentKey As Byte() _
) As Byte()
'Usage
Dim cert As X509Certificate2
Dim contentKey As Byte()
Dim returnValue As Byte()
returnValue = CommonEncryption.EncryptContentKeyToCertificate(cert, _
contentKey)
public static byte[] EncryptContentKeyToCertificate(
X509Certificate2 cert,
byte[] contentKey
)
public:
static array<unsigned char>^ EncryptContentKeyToCertificate(
X509Certificate2^ cert,
array<unsigned char>^ contentKey
)
static member EncryptContentKeyToCertificate :
cert:X509Certificate2 *
contentKey:byte[] -> byte[]
public static function EncryptContentKeyToCertificate(
cert : X509Certificate2,
contentKey : byte[]
) : byte[]
Parameters
- cert
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
The cert.
- contentKey
Type: array<System.Byte[]
The content key.
Return Value
Type: array<System.Byte[]
Returns Byte, which contains the encrypted content key..