fun encryptDetached(message: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message, generating a detached message authentication code.
message
- Bytes!: The message to encrypt.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
fun encryptDetached(message: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message, generating a detached message authentication code.
message
- ByteArray!: The message to encrypt.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
fun encryptDetached(message: Bytes!, data: Bytes!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message, generating a detached message authentication code.
message
- Bytes!: The message to encrypt.
data
- Bytes!: Extra non-confidential data that will be included with the encrypted payload.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
fun encryptDetached(message: ByteArray!, data: ByteArray!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message, generating a detached message authentication code.
message
- ByteArray!: The message to encrypt.
data
- ByteArray!: Extra non-confidential data that will be included with the encrypted payload.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
static fun encryptDetached(message: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message for a given key, generating a detached message authentication code.
message
- Bytes!: The message to encrypt.
key
- Key!: The key to encrypt for.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
static fun encryptDetached(message: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message for a given key, generating a detached message authentication code.
message
- ByteArray!: The message to encrypt.
key
- Key!: The key to encrypt for.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
static fun encryptDetached(message: Bytes!, data: Bytes!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message for a given key, generating a detached message authentication code.
message
- Bytes!: The message to encrypt.
data
- Bytes!: Extra non-confidential data that will be included with the encrypted payload.
key
- Key!: The key to encrypt for.
nonce
- Nonce!: A unique nonce.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.
static fun encryptDetached(message: ByteArray!, data: ByteArray!, key: Key!, nonce: Nonce!): DetachedEncryptionResult!
(source)
Encrypt a message for a given key, generating a detached message authentication code.
message
- ByteArray!: The message to encrypt.
data
- ByteArray!: Extra non-confidential data that will be included with the encrypted payload.
key
- Key!: The key to encrypt for.
nonce
- Nonce!: A unique nonce.
UnsupportedOperationException
- If AES256-GSM support is not available.
Return
DetachedEncryptionResult!: The encrypted data and message authentication code.