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<Byte>!,
    nonce: Long,
    offset: Long
)
AesFlushingCipher(
    mode: Int,
    secretKey: ByteArray<Byte>!,
    nonce: String?,
    offset: Long
)

Public functions

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

Public constructors

AesFlushingCipher

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

AesFlushingCipher

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

Public functions

update

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

updateInPlace

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