-
public final class SecretBox.Checker extends BaseChecker
-
-
Method Summary
Modifier and Type Method Description static voidcheckKey(Array<byte> key)static voidcheckMac(Array<byte> mac)static voidcheckNonce(Array<byte> nonce)static voidcheckCipherText(Array<byte> cipherText, int messageLen)static voidcheckMessage(Array<byte> message, int cipherTextLen)static voidcheckCipherTextLength(long cipherTextLen)static voidcheckKeyXChaCha20Poly1305(Array<byte> key)static voidcheckMacXChaCha20Poly1305(Array<byte> mac)static voidcheckNonceXChaCha20Poly1305(Array<byte> nonce)static voidcheckCipherTextXChaCha20Poly1305(Array<byte> cipherText, int messageLen)static voidcheckMessageXChaCha20Poly1305(Array<byte> message, int cipherTextLen)static voidcheckCipherTextLengthXChaCha20Poly1305(long cipherTextLen)-
Methods inherited from class com.goterl.lazysodium.utils.BaseChecker
checkArrayLength, checkAtLeast, checkBetween, checkBetween, checkEqual, checkExpectedMemorySize, checkOptionalArrayLength, checkOptionalOutPointer, checkOptionalOutPointer, correctLen, isBetween, requireNonNull -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
checkNonce
static void checkNonce(Array<byte> nonce)
-
checkCipherText
static void checkCipherText(Array<byte> cipherText, int messageLen)
-
checkMessage
static void checkMessage(Array<byte> message, int cipherTextLen)
-
checkCipherTextLength
static void checkCipherTextLength(long cipherTextLen)
-
checkKeyXChaCha20Poly1305
static void checkKeyXChaCha20Poly1305(Array<byte> key)
-
checkMacXChaCha20Poly1305
static void checkMacXChaCha20Poly1305(Array<byte> mac)
-
checkNonceXChaCha20Poly1305
static void checkNonceXChaCha20Poly1305(Array<byte> nonce)
-
checkCipherTextXChaCha20Poly1305
static void checkCipherTextXChaCha20Poly1305(Array<byte> cipherText, int messageLen)
-
checkMessageXChaCha20Poly1305
static void checkMessageXChaCha20Poly1305(Array<byte> message, int cipherTextLen)
-
checkCipherTextLengthXChaCha20Poly1305
static void checkCipherTextLengthXChaCha20Poly1305(long cipherTextLen)
-
-
-
-