Package com.goterl.lazysodium.interfaces
Interface AEAD.Native
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- AEAD
public static interface AEAD.Native
-
Method Summary
Modifier and TypeMethodDescriptionbooleancryptoAeadAES256GCMDecrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadAES256GCMDecrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadAES256GCMDecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadAES256GCMDecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadAES256GCMEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadAES256GCMEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadAES256GCMEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadAES256GCMEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleanvoidcryptoAeadAES256GCMKeygen(byte[] key) booleancryptoAeadChaCha20Poly1305Decrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305Decrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305DecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305DecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305Encrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Encrypt a messagebooleancryptoAeadChaCha20Poly1305Encrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305EncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305EncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.voidcryptoAeadChaCha20Poly1305IetfKeygen(byte[] key) voidcryptoAeadChaCha20Poly1305Keygen(byte[] key) booleancryptoAeadXChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadXChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadXChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadXChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadXChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadXChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.booleancryptoAeadXChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) booleancryptoAeadXChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.voidcryptoAeadXChaCha20Poly1305IetfKeygen(byte[] key)
-
Method Details
-
cryptoAeadChaCha20Poly1305Keygen
void cryptoAeadChaCha20Poly1305Keygen(byte[] key) -
cryptoAeadChaCha20Poly1305Encrypt
boolean cryptoAeadChaCha20Poly1305Encrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Encrypt a message- Parameters:
cipher- Buffer for the cipher textcipherLen- Output buffer into which the real length of the cipher text is stored (it can benullif not interested)message- The message to encryptmessageLen- Length of the messageadditionalData- Additional authenticated data ornulladditionalDataLen- Length of additional authenticated data (or0)nPub- Public noncekey- Secret key- Returns:
trueif the encryption succeeded
-
cryptoAeadChaCha20Poly1305Encrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305Encrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version.Encrypt a message (a deprecated overload)- Parameters:
cipher- Buffer for the cipher textcipherLen- Output buffer into which the real length of the cipher text is stored (it can benullif not interested)message- The message to encryptmessageLen- Length of the messageadditionalData- Additional authenticated data ornulladditionalDataLen- Length of additional authenticated data (or0)nSec- Unused parameter; should benullnPub- Public noncekey- Secret key- Returns:
trueif the encryption succeeded
-
cryptoAeadChaCha20Poly1305Decrypt
boolean cryptoAeadChaCha20Poly1305Decrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305Decrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305Decrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadChaCha20Poly1305EncryptDetached
boolean cryptoAeadChaCha20Poly1305EncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305EncryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305EncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadChaCha20Poly1305DecryptDetached
boolean cryptoAeadChaCha20Poly1305DecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305DecryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305DecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadChaCha20Poly1305IetfKeygen
void cryptoAeadChaCha20Poly1305IetfKeygen(byte[] key) -
cryptoAeadChaCha20Poly1305IetfEncrypt
boolean cryptoAeadChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305IetfEncrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadChaCha20Poly1305IetfDecrypt
boolean cryptoAeadChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305IetfDecrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadChaCha20Poly1305IetfEncryptDetached
boolean cryptoAeadChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305IetfEncryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadChaCha20Poly1305IetfDecryptDetached
boolean cryptoAeadChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadChaCha20Poly1305IetfDecryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadXChaCha20Poly1305IetfKeygen
void cryptoAeadXChaCha20Poly1305IetfKeygen(byte[] key) -
cryptoAeadXChaCha20Poly1305IetfEncrypt
boolean cryptoAeadXChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadXChaCha20Poly1305IetfEncrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadXChaCha20Poly1305IetfEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadXChaCha20Poly1305IetfDecrypt
boolean cryptoAeadXChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadXChaCha20Poly1305IetfDecrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadXChaCha20Poly1305IetfDecrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadXChaCha20Poly1305IetfEncryptDetached
boolean cryptoAeadXChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadXChaCha20Poly1305IetfEncryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadXChaCha20Poly1305IetfEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadXChaCha20Poly1305IetfDecryptDetached
boolean cryptoAeadXChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadXChaCha20Poly1305IetfDecryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadXChaCha20Poly1305IetfDecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadAES256GCMKeygen
void cryptoAeadAES256GCMKeygen(byte[] key) -
cryptoAeadAES256GCMEncrypt
boolean cryptoAeadAES256GCMEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadAES256GCMEncrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadAES256GCMEncrypt(byte[] cipher, long[] cipherLen, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadAES256GCMDecrypt
boolean cryptoAeadAES256GCMDecrypt(byte[] message, long[] messageLen, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadAES256GCMDecrypt
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadAES256GCMDecrypt(byte[] message, long[] messageLen, byte[] nSec, byte[] cipher, int cipherLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadAES256GCMEncryptDetached
boolean cryptoAeadAES256GCMEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadAES256GCMEncryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadAES256GCMEncryptDetached(byte[] cipher, byte[] mac, long[] macLenAddress, byte[] message, int messageLen, byte[] additionalData, int additionalDataLen, byte[] nSec, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadAES256GCMDecryptDetached
boolean cryptoAeadAES256GCMDecryptDetached(byte[] message, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) -
cryptoAeadAES256GCMDecryptDetached
@Deprecated(forRemoval=true, since="6.0.0") boolean cryptoAeadAES256GCMDecryptDetached(byte[] message, byte[] nSec, byte[] cipher, int cipherLen, byte[] mac, byte[] additionalData, int additionalDataLen, byte[] nPub, byte[] key) Deprecated, for removal: This API element is subject to removal in a future version. -
cryptoAeadAES256GCMIsAvailable
boolean cryptoAeadAES256GCMIsAvailable()
-
cryptoAeadChaCha20Poly1305Encrypt(byte[], long[], byte[], int, byte[], int, byte[], byte[])instead.