decryptFileWithAES256

actual fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

Method used to decrypt some binary data using the AES256 encryption algorithm

Return

the size of the decrypted data in bytes if the decryption succeeded -1L otherwise

Parameters

source

the Source of the encrypted data that needs to be decrypted

sink

the Sink to which the plain text data will be written to

secretKey

the key used for the decryption

See also

Throws

IllegalArgumentException

if secretKey is not exactly 32 bytes

expect fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

Method used to decrypt some binary data using the AES256 encryption algorithm

Return

the size of the decrypted data in bytes if the decryption succeeded -1L otherwise

Parameters

source

the Source of the encrypted data that needs to be decrypted

sink

the Sink to which the plain text data will be written to

secretKey

the key used for the decryption

See also

Throws

IllegalArgumentException

if secretKey is not exactly 32 bytes

actual fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

Method used to decrypt some binary data using the AES256 encryption algorithm

Return

the size of the decrypted data in bytes if the decryption succeeded -1L otherwise

Parameters

source

the Source of the encrypted data that needs to be decrypted

sink

the Sink to which the plain text data will be written to

secretKey

the key used for the decryption

See also

Throws

IllegalArgumentException

if secretKey is not exactly 32 bytes

actual fun decryptFileWithAES256(source: Source, sink: Sink, secretKey: AES256Key): Long

Method used to decrypt some binary data using the AES256 encryption algorithm

Return

the size of the decrypted data in bytes if the decryption succeeded -1L otherwise

Parameters

source

the Source of the encrypted data that needs to be decrypted

sink

the Sink to which the plain text data will be written to

secretKey

the key used for the decryption

See also

Throws

IllegalArgumentException

if secretKey is not exactly 32 bytes