library
androidJvm
library
/
org.xmtp.android.library
/
Crypto
/
Companion
Companion
object
Companion
Members
Functions
calculate
Mac
Link copied to clipboard
fun
calculateMac
(
secret
:
ByteArray
,
message
:
ByteArray
)
:
ByteArray
decrypt
Link copied to clipboard
fun
decrypt
(
secret
:
ByteArray
,
ciphertext
:
CipherText
,
additionalData
:
ByteArray
=
byteArrayOf()
)
:
ByteArray
?
derive
Key
Link copied to clipboard
fun
deriveKey
(
secret
:
ByteArray
,
salt
:
ByteArray
,
info
:
ByteArray
)
:
ByteArray
encrypt
Link copied to clipboard
fun
encrypt
(
secret
:
ByteArray
,
message
:
ByteArray
,
additionalData
:
ByteArray
=
byteArrayOf()
)
:
CipherText
?
verify
Hmac
Signature
Link copied to clipboard
fun
verifyHmacSignature
(
key
:
ByteArray
,
signature
:
ByteArray
,
message
:
ByteArray
)
:
Boolean