TrackOutput.CryptoData


public final class TrackOutput.CryptoData


Holds data required to decrypt a sample.

Summary

Public fields

final int

The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.

final int

The encryption mode used for the sample.

final int

The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.

final byte[]

The encryption key associated with the sample.

Public constructors

CryptoData(
    @C.CryptoMode int cryptoMode,
    byte[] encryptionKey,
    int encryptedBlocks,
    int clearBlocks
)

Public methods

boolean
int

Public fields

clearBlocks

public final int clearBlocks

The number of clear blocks in the encryption pattern, 0 if pattern encryption does not apply.

cryptoMode

@C.CryptoMode
public final int cryptoMode

The encryption mode used for the sample.

encryptedBlocks

public final int encryptedBlocks

The number of encrypted blocks in the encryption pattern, 0 if pattern encryption does not apply.

encryptionKey

public final byte[] encryptionKey

The encryption key associated with the sample. Its contents must not be modified.

Public constructors

CryptoData

public CryptoData(
    @C.CryptoMode int cryptoMode,
    byte[] encryptionKey,
    int encryptedBlocks,
    int clearBlocks
)
Parameters
@C.CryptoMode int cryptoMode

See cryptoMode.

byte[] encryptionKey

See encryptionKey.

int encryptedBlocks

See encryptedBlocks.

int clearBlocks

See clearBlocks.

Public methods

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()