Język

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

Definition

Sign data using the CryptoSessions's mac algorithm.

[Android.Runtime.Register("sign", "([B[B)[B", "")]
public byte[] Sign(byte[] keyid, byte[] message);
[<Android.Runtime.Register("sign", "([B[B)[B", "")>]
member this.Sign : byte[] * byte[] -> byte[]

Parameters

keyid
Byte[]

specifies which key to use

message
Byte[]

the data for which a signature is to be computed

Returns

Byte[]

The authentication-code bytes computed by the DRM plugin with the session's configured MAC algorithm and requested key.

Attributes

Remarks

Sign data using the CryptoSessions's mac algorithm.

Java documentation for android.media.MediaDrm.CryptoSession.sign(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