-
public final class Box.Checker extends BaseChecker
-
-
Method Summary
Modifier and Type Method Description static voidcheckPublicKey(Array<byte> key)static voidcheckPublicKeyCurve25519XChaCha20Poly1305(Array<byte> key)static voidcheckSecretKey(Array<byte> key)static voidcheckSecretKeyCurve25519XChaCha20Poly1305(Array<byte> key)static voidcheckSeed(Array<byte> seed)static voidcheckSeedCurve25519XChaCha20Poly1305(Array<byte> seed)static voidcheckNonce(Array<byte> nonce)static voidcheckNonceCurve25519XChaCha20Poly1305(Array<byte> nonce)static voidcheckMac(Array<byte> mac)static voidcheckMacCurve25519XChaCha20Poly1305(Array<byte> mac)static voidcheckSharedKey(Array<byte> sharedKey)static voidcheckSharedKeyCurve25519XChaCha20Poly1305(Array<byte> sharedKey)static voidcheckCipherText(Array<byte> cipherText, int messageLen)static voidcheckCipherTextCurve25519XChaCha20Poly1305(Array<byte> cipherText, int messageLen)static voidcheckSealCipherText(Array<byte> cipherText, int messageLen)static voidcheckSealCipherTextCurve25519XChaCha20Poly1305(Array<byte> cipherText, int messageLen)static voidcheckMessage(Array<byte> message, int cipherTextLen)static voidcheckMessageCurve25519XChaCha20Poly1305(Array<byte> message, int cipherTextLen)static voidcheckSealMessage(Array<byte> message, int cipherTextLen)static voidcheckSealMessageCurve25519XChaCha20Poly1305(Array<byte> message, int cipherTextLen)static voidcheckCipherTextLength(long cipherTextLen)static voidcheckCipherTextLengthCurve25519XChaCha20Poly1305(long cipherTextLen)static voidcheckSealCipherTextLength(long cipherTextLen)static voidcheckSealCipherTextLengthCurve25519XChaCha20Poly1305(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
-
checkPublicKey
static void checkPublicKey(Array<byte> key)
-
checkPublicKeyCurve25519XChaCha20Poly1305
static void checkPublicKeyCurve25519XChaCha20Poly1305(Array<byte> key)
-
checkSecretKey
static void checkSecretKey(Array<byte> key)
-
checkSecretKeyCurve25519XChaCha20Poly1305
static void checkSecretKeyCurve25519XChaCha20Poly1305(Array<byte> key)
-
checkSeedCurve25519XChaCha20Poly1305
static void checkSeedCurve25519XChaCha20Poly1305(Array<byte> seed)
-
checkNonce
static void checkNonce(Array<byte> nonce)
-
checkNonceCurve25519XChaCha20Poly1305
static void checkNonceCurve25519XChaCha20Poly1305(Array<byte> nonce)
-
checkMacCurve25519XChaCha20Poly1305
static void checkMacCurve25519XChaCha20Poly1305(Array<byte> mac)
-
checkSharedKey
static void checkSharedKey(Array<byte> sharedKey)
-
checkSharedKeyCurve25519XChaCha20Poly1305
static void checkSharedKeyCurve25519XChaCha20Poly1305(Array<byte> sharedKey)
-
checkCipherText
static void checkCipherText(Array<byte> cipherText, int messageLen)
-
checkCipherTextCurve25519XChaCha20Poly1305
static void checkCipherTextCurve25519XChaCha20Poly1305(Array<byte> cipherText, int messageLen)
-
checkSealCipherText
static void checkSealCipherText(Array<byte> cipherText, int messageLen)
-
checkSealCipherTextCurve25519XChaCha20Poly1305
static void checkSealCipherTextCurve25519XChaCha20Poly1305(Array<byte> cipherText, int messageLen)
-
checkMessage
static void checkMessage(Array<byte> message, int cipherTextLen)
-
checkMessageCurve25519XChaCha20Poly1305
static void checkMessageCurve25519XChaCha20Poly1305(Array<byte> message, int cipherTextLen)
-
checkSealMessage
static void checkSealMessage(Array<byte> message, int cipherTextLen)
-
checkSealMessageCurve25519XChaCha20Poly1305
static void checkSealMessageCurve25519XChaCha20Poly1305(Array<byte> message, int cipherTextLen)
-
checkCipherTextLength
static void checkCipherTextLength(long cipherTextLen)
-
checkCipherTextLengthCurve25519XChaCha20Poly1305
static void checkCipherTextLengthCurve25519XChaCha20Poly1305(long cipherTextLen)
-
checkSealCipherTextLength
static void checkSealCipherTextLength(long cipherTextLen)
-
checkSealCipherTextLengthCurve25519XChaCha20Poly1305
static void checkSealCipherTextLengthCurve25519XChaCha20Poly1305(long cipherTextLen)
-
-
-
-