Back to Exoplayer

AesFlushingCipher (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/crypto/AesFlushingCipher.html

latest3.3 KB
Original Source

Package com.google.android.exoplayer2.upstream.crypto

Class AesFlushingCipher

  • java.lang.Object

    • com.google.android.exoplayer2.upstream.crypto.AesFlushingCipher

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classAesFlushingCipherextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A flushing variant of a AES/CTR/NoPadding Cipher.

Unlike a regular Cipher, the update methods of this class are guaranteed to process all of the bytes input (and hence output the same number of bytes).

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | AesFlushingCipher​(int mode, byte[] secretKey, long nonce, long offset) | Deprecated. | | AesFlushingCipher​(int mode, byte[] secretKey, String nonce, long offset) | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | update​(byte[] in, int inOffset, int length, byte[] out, int outOffset) | Deprecated. | | void | updateInPlace​(byte[] data, int offset, int length) | Deprecated. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

AesFlushingCipher

public AesFlushingCipher​(int mode,
                         byte[] secretKey,
                         @Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")nonce,
                         long offset)

Deprecated.

- 

AesFlushingCipher

public AesFlushingCipher​(int mode,
                         byte[] secretKey,
                         long nonce,
                         long offset)

Deprecated.

Method Detail

- 

updateInPlace

public void updateInPlace​(byte[] data,
                          int offset,
                          int length)

Deprecated.

- 

update

public void update​(byte[] in,
                   int inOffset,
                   int length,
                   byte[] out,
                   int outOffset)

Deprecated.