toggle menu
cryptography-kotlin
0.4.0
common
switch theme
search in API
cryptography-provider-base
/
dev.whyoleg.cryptography.providers.base.operations
/
BaseAuthenticatedEncryptor
Base
Authenticated
Encryptor
interface
BaseAuthenticatedEncryptor
:
AuthenticatedEncryptor
,
BaseEncryptor
(
source
)
Inheritors
BaseAesIvAuthenticatedEncryptor
BaseAuthenticatedCipher
Members
Functions
create
Encrypt
Function
Link copied to clipboard
open
override
fun
createEncryptFunction
(
)
:
CipherFunction
abstract
fun
createEncryptFunction
(
associatedData
:
ByteArray
?
)
:
CipherFunction
encrypt
Link copied to clipboard
open
suspend override
fun
encrypt
(
plaintext
:
ByteArray
)
:
ByteArray
open
suspend override
fun
encrypt
(
plaintext
:
ByteString
)
:
ByteString
open
suspend
fun
encrypt
(
plaintext
:
ByteArray
,
associatedData
:
ByteArray
?
)
:
ByteArray
open
suspend
fun
encrypt
(
plaintext
:
ByteString
,
associatedData
:
ByteString
?
)
:
ByteString
encrypt
Blocking
Link copied to clipboard
open
override
fun
encryptBlocking
(
plaintext
:
ByteString
)
:
ByteString
open
fun
encryptBlocking
(
plaintext
:
ByteString
,
associatedData
:
ByteString
?
)
:
ByteString
open
override
fun
encryptBlocking
(
plaintext
:
ByteArray
)
:
ByteArray
open
override
fun
encryptBlocking
(
plaintext
:
ByteArray
,
associatedData
:
ByteArray
?
)
:
ByteArray
encrypting
Sink
Link copied to clipboard
open
fun
encryptingSink
(
ciphertext
:
RawSink
,
associatedData
:
ByteString
?
)
:
RawSink
open
override
fun
encryptingSink
(
ciphertext
:
RawSink
)
:
RawSink
open
override
fun
encryptingSink
(
ciphertext
:
RawSink
,
associatedData
:
ByteArray
?
)
:
RawSink
encrypting
Source
Link copied to clipboard
open
fun
encryptingSource
(
plaintext
:
RawSource
,
associatedData
:
ByteString
?
)
:
RawSource
open
override
fun
encryptingSource
(
plaintext
:
RawSource
)
:
RawSource
open
override
fun
encryptingSource
(
plaintext
:
RawSource
,
associatedData
:
ByteArray
?
)
:
RawSource