Share via


MediaDrm.CryptoSession.Encrypt(Byte[], Byte[], Byte[]) Method

Definition

Encrypt data using the CryptoSession's cipher algorithm

[Android.Runtime.Register("encrypt", "([B[B[B)[B", "")]
public byte[] Encrypt (byte[] keyid, byte[] input, byte[] iv);
[<Android.Runtime.Register("encrypt", "([B[B[B)[B", "")>]
member this.Encrypt : byte[] * byte[] * byte[] -> byte[]

Parameters

keyid
Byte[]

specifies which key to use

input
Byte[]

the data to encrypt

iv
Byte[]

the initialization vector to use for the cipher

Returns

Byte[]
Attributes

Remarks

Encrypt data using the CryptoSession's cipher algorithm

Java documentation for android.media.MediaDrm.CryptoSession.encrypt(byte[], byte[], byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to