Package com.goterl.lazysodium.interfaces
Class SecretBox.Checker
java.lang.Object
com.goterl.lazysodium.utils.BaseChecker
com.goterl.lazysodium.interfaces.SecretBox.Checker
- Enclosing interface:
- SecretBox
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckCipherText(byte[] cipherText, int messageLen) static voidcheckCipherTextLength(long cipherTextLen) static voidcheckKey(byte[] key) static voidcheckMac(byte[] mac) static voidcheckMessage(byte[] message, int cipherTextLen) static voidcheckNonce(byte[] nonce) Methods inherited from class com.goterl.lazysodium.utils.BaseChecker
checkArrayLength, checkAtLeast, checkBetween, checkBetween, checkEqual, checkExpectedMemorySize, checkOptionalArrayLength, checkOptionalOutPointer, checkOptionalOutPointer, correctLen, isBetween, requireNonNull
-
Method Details
-
checkKey
public static void checkKey(byte[] key) -
checkMac
public static void checkMac(byte[] mac) -
checkNonce
public static void checkNonce(byte[] nonce) -
checkCipherText
public static void checkCipherText(byte[] cipherText, int messageLen) -
checkMessage
public static void checkMessage(byte[] message, int cipherTextLen) -
checkCipherTextLength
public static void checkCipherTextLength(long cipherTextLen)
-