AesFlushingCipher


@UnstableApi
class AesFlushingCipher


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).

Summary

Public constructors

AesFlushingCipher(mode: Int, secretKey: ByteArray!, nonce: Long, offset: Long)
AesFlushingCipher(
    mode: Int,
    secretKey: ByteArray!,
    nonce: String?,
    offset: Long
)

Public functions

Unit
update(
    in: ByteArray!,
    inOffset: Int,
    length: Int,
    out: ByteArray!,
    outOffset: Int
)
Unit
updateInPlace(data: ByteArray!, offset: Int, length: Int)

Public constructors

AesFlushingCipher

AesFlushingCipher(mode: Int, secretKey: ByteArray!, nonce: Long, offset: Long)

AesFlushingCipher

AesFlushingCipher(
    mode: Int,
    secretKey: ByteArray!,
    nonce: String?,
    offset: Long
)

Public functions

update

fun update(
    in: ByteArray!,
    inOffset: Int,
    length: Int,
    out: ByteArray!,
    outOffset: Int
): Unit

updateInPlace

fun updateInPlace(data: ByteArray!, offset: Int, length: Int): Unit