toggle menu
cryptography-kotlin
0.4.0
common
switch theme
search in API
cryptography-core
/
dev.whyoleg.cryptography.operations
/
AuthenticatedCipher
Authenticated
Cipher
interface
AuthenticatedCipher
:
Cipher
,
AuthenticatedEncryptor
,
AuthenticatedDecryptor
(
source
)
Inheritors
IvAuthenticatedCipher
Members
Functions
decrypt
Link copied to clipboard
open
suspend
fun
decrypt
(
ciphertext
:
ByteArray
,
associatedData
:
ByteArray
?
)
:
ByteArray
open
suspend
fun
decrypt
(
ciphertext
:
ByteString
,
associatedData
:
ByteString
?
)
:
ByteString
open
suspend
fun
decrypt
(
ciphertext
:
ByteArray
)
:
ByteArray
open
suspend
fun
decrypt
(
ciphertext
:
ByteString
)
:
ByteString
decrypt
Blocking
Link copied to clipboard
abstract
fun
decryptBlocking
(
ciphertext
:
ByteArray
,
associatedData
:
ByteArray
?
)
:
ByteArray
open
fun
decryptBlocking
(
ciphertext
:
ByteString
,
associatedData
:
ByteString
?
)
:
ByteString
abstract
fun
decryptBlocking
(
ciphertext
:
ByteArray
)
:
ByteArray
open
fun
decryptBlocking
(
ciphertext
:
ByteString
)
:
ByteString
decrypting
Sink
Link copied to clipboard
abstract
fun
decryptingSink
(
plaintext
:
RawSink
,
associatedData
:
ByteArray
?
)
:
RawSink
open
fun
decryptingSink
(
plaintext
:
RawSink
,
associatedData
:
ByteString
?
)
:
RawSink
abstract
fun
decryptingSink
(
plaintext
:
RawSink
)
:
RawSink
decrypting
Source
Link copied to clipboard
abstract
fun
decryptingSource
(
ciphertext
:
RawSource
,
associatedData
:
ByteArray
?
)
:
RawSource
open
fun
decryptingSource
(
ciphertext
:
RawSource
,
associatedData
:
ByteString
?
)
:
RawSource
abstract
fun
decryptingSource
(
ciphertext
:
RawSource
)
:
RawSource
encrypt
Link copied to clipboard
open
suspend
fun
encrypt
(
plaintext
:
ByteArray
,
associatedData
:
ByteArray
?
)
:
ByteArray
open
suspend
fun
encrypt
(
plaintext
:
ByteString
,
associatedData
:
ByteString
?
)
:
ByteString
open
suspend
fun
encrypt
(
plaintext
:
ByteArray
)
:
ByteArray
open
suspend
fun
encrypt
(
plaintext
:
ByteString
)
:
ByteString
encrypt
Blocking
Link copied to clipboard
abstract
fun
encryptBlocking
(
plaintext
:
ByteArray
,
associatedData
:
ByteArray
?
)
:
ByteArray
open
fun
encryptBlocking
(
plaintext
:
ByteString
,
associatedData
:
ByteString
?
)
:
ByteString
abstract
fun
encryptBlocking
(
plaintext
:
ByteArray
)
:
ByteArray
open
fun
encryptBlocking
(
plaintext
:
ByteString
)
:
ByteString
encrypting
Sink
Link copied to clipboard
abstract
fun
encryptingSink
(
ciphertext
:
RawSink
,
associatedData
:
ByteArray
?
)
:
RawSink
open
fun
encryptingSink
(
ciphertext
:
RawSink
,
associatedData
:
ByteString
?
)
:
RawSink
abstract
fun
encryptingSink
(
ciphertext
:
RawSink
)
:
RawSink
encrypting
Source
Link copied to clipboard
abstract
fun
encryptingSource
(
plaintext
:
RawSource
,
associatedData
:
ByteArray
?
)
:
RawSource
open
fun
encryptingSource
(
plaintext
:
RawSource
,
associatedData
:
ByteString
?
)
:
RawSource
abstract
fun
encryptingSource
(
plaintext
:
RawSource
)
:
RawSource