toggle menu
multiplatform-crypto-libsodium-bindings
0.9.6
android
common
jvm
mingwX64
switch theme
search in API
multiplatform-crypto-libsodium-bindings
/
com.ionspin.kotlin.crypto.util
/
LibsodiumUtil
Libsodium
Util
android
common
jvm
mingwX64
actual
object
LibsodiumUtil
expect
object
LibsodiumUtil
actual
object
LibsodiumUtil
actual
object
LibsodiumUtil
Created by Ugljesa Jovanovic ugljesa.jovanovic@ionspin.com on 31-Aug-2020
Members
Functions
from
Base64
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
fromBase64
(
data
:
String
,
variant
:
Base64Variants
)
:
UByteArray
expect
fun
fromBase64
(
data
:
String
,
variant
:
Base64Variants
=
Base64Variants.ORIGINAL
)
:
UByteArray
actual
fun
fromBase64
(
data
:
String
,
variant
:
Base64Variants
)
:
UByteArray
actual
fun
fromBase64
(
data
:
String
,
variant
:
Base64Variants
)
:
UByteArray
from
Hex
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
fromHex
(
data
:
String
)
:
UByteArray
expect
fun
fromHex
(
data
:
String
)
:
UByteArray
actual
fun
fromHex
(
data
:
String
)
:
UByteArray
actual
fun
fromHex
(
data
:
String
)
:
UByteArray
memcmp
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
memcmp
(
first
:
UByteArray
,
second
:
UByteArray
)
:
Boolean
expect
fun
memcmp
(
first
:
UByteArray
,
second
:
UByteArray
)
:
Boolean
actual
fun
memcmp
(
first
:
UByteArray
,
second
:
UByteArray
)
:
Boolean
actual
fun
memcmp
(
first
:
UByteArray
,
second
:
UByteArray
)
:
Boolean
memzero
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
memzero
(
target
:
UByteArray
)
expect
fun
memzero
(
target
:
UByteArray
)
actual
fun
memzero
(
target
:
UByteArray
)
actual
fun
memzero
(
target
:
UByteArray
)
pad
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
pad
(
unpaddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
expect
fun
pad
(
unpaddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
actual
fun
pad
(
unpaddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
actual
fun
pad
(
unpaddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
to
Base64
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
toBase64
(
data
:
UByteArray
,
variant
:
Base64Variants
)
:
String
expect
fun
toBase64
(
data
:
UByteArray
,
variant
:
Base64Variants
=
Base64Variants.ORIGINAL
)
:
String
actual
fun
toBase64
(
data
:
UByteArray
,
variant
:
Base64Variants
)
:
String
actual
fun
toBase64
(
data
:
UByteArray
,
variant
:
Base64Variants
)
:
String
to
Hex
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
toHex
(
data
:
UByteArray
)
:
String
expect
fun
toHex
(
data
:
UByteArray
)
:
String
actual
fun
toHex
(
data
:
UByteArray
)
:
String
actual
fun
toHex
(
data
:
UByteArray
)
:
String
unpad
Link copied to clipboard
android
common
jvm
mingwX64
actual
fun
unpad
(
paddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
expect
fun
unpad
(
paddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
actual
fun
unpad
(
paddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray
actual
fun
unpad
(
paddedData
:
UByteArray
,
blocksize
:
Int
)
:
UByteArray