TrackOutput.CryptoData


class TrackOutput.CryptoData


Holds data required to decrypt a sample.

Summary

Public constructors

CryptoData(
    @C.CryptoMode cryptoMode: Int,
    encryptionKey: ByteArray!,
    encryptedBlocks: Int,
    clearBlocks: Int
)

Public functions

Boolean
equals(obj: Any?)
Int

Public properties

Int

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

Int

The encryption mode used for the sample.

Int

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

ByteArray<Byte>!

The encryption key associated with the sample.

Public constructors

CryptoData

CryptoData(
    @C.CryptoMode cryptoMode: Int,
    encryptionKey: ByteArray!,
    encryptedBlocks: Int,
    clearBlocks: Int
)
Parameters
@C.CryptoMode cryptoMode: Int

See cryptoMode.

encryptionKey: ByteArray!

See encryptionKey.

encryptedBlocks: Int

See encryptedBlocks.

clearBlocks: Int

See clearBlocks.

Public functions

equals

fun equals(obj: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

clearBlocks

val clearBlocksInt

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

cryptoMode

@C.CryptoMode
val cryptoModeInt

The encryption mode used for the sample.

encryptedBlocks

val encryptedBlocksInt

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

encryptionKey

val encryptionKeyByteArray<Byte>!

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