toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.crypto
/
CipherWithModeAndPadding
Cipher
With
Mode
And
Padding
class
CipherWithModeAndPadding
(
val
cipher
:
Cipher
,
val
mode
:
CipherMode
,
val
padding
:
CipherPadding
,
val
iv
:
ByteArray
?
=
null
)
Members
Constructors
Cipher
With
Mode
And
Padding
Link copied to clipboard
constructor
(
cipher
:
Cipher
,
mode
:
CipherMode
,
padding
:
CipherPadding
,
iv
:
ByteArray
?
=
null
)
Properties
cipher
Link copied to clipboard
val
cipher
:
Cipher
iv
Link copied to clipboard
val
iv
:
ByteArray
?
=
null
mode
Link copied to clipboard
val
mode
:
CipherMode
padding
Link copied to clipboard
val
padding
:
CipherPadding
Functions
decrypt
Link copied to clipboard
fun
decrypt
(
data
:
ByteArray
,
offset
:
Int
=
0
,
len
:
Int
=
data.size - offset
)
:
ByteArray
encrypt
Link copied to clipboard
fun
encrypt
(
data
:
ByteArray
,
offset
:
Int
=
0
,
len
:
Int
=
data.size - offset
)
:
ByteArray