lightning-kmp
/
fr.acinq.lightning.crypto
/
ChaCha20
/
Companion
common
Companion
object
Companion
Content copied to clipboard
Functions
Properties
Functions
decrypt
Link copied to clipboard
common
fun
decrypt
(ciphertext:
ByteArray
, key:
ByteArray
, nonce:
ByteArray
, counter:
Int
= 0):
ByteArray
Content copied to clipboard
encrypt
Link copied to clipboard
common
fun
encrypt
(plaintext:
ByteArray
, key:
ByteArray
, nonce:
ByteArray
, counter:
Int
= 0):
ByteArray
Content copied to clipboard
Properties
KEY_SIZE
Link copied to clipboard
common
const val
KEY_SIZE
:
Int
= 32
Content copied to clipboard
NONCE_SIZE_IETF
Link copied to clipboard
common
const val
NONCE_SIZE_IETF
:
Int
= 12
Content copied to clipboard
NONCE_SIZE_REF
Link copied to clipboard
common
const val
NONCE_SIZE_REF
:
Int
= 8
Content copied to clipboard