Class AesFlushingCipher


  • @Deprecated
    public final class AesFlushingCipher
    extends Object
    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 Detail

      • AesFlushingCipher

        public AesFlushingCipher​(int mode,
                                 byte[] secretKey,
                                 @Nullable
                                 String 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.