Package com.gherynos.libsaltpack
Class Constants
java.lang.Object
com.gherynos.libsaltpack.Constants
Constants for key sizes and alphabets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
BASE62 alphabet constant forUtils
baseX
methods.static final String
BASE64 alphabet constant forUtils
baseX
methods.static final String
BASE85 alphabet constant forUtils
baseX
methods.static final int
Constant defining the size of a public key used when encrypting/decrypting a message withMessageWriter
andMessageReader
.static final int
Constant defining the size of a private key used when encrypting/decrypting a message withMessageWriter
andMessageReader
.static final int
Constant defining the maximum amount of RAM.static final int
Constant defining the maximum amount of RAM.static final int
Constant defining the maximum amount of RAM.static final int
Constant defining the maximum amount of computations.static final int
Constant defining the maximum amount of computations.static final int
Constant defining the maximum amount of computations.static final int
Constant defining the length of the salt required byUtils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.static final int
Constant defining the size of a symmetric key used when signcrypting/verifying a message withMessageWriter
andMessageReader
.static final int
Constant defining the size of a public key used when signing/verifying a message withMessageWriter
andMessageReader
.static final int
Constant defining the size of a private key used when signing/verifying a message withMessageWriter
andMessageReader
. -
Method Summary
-
Field Details
-
CRYPTO_BOX_PUBLICKEYBYTES
public static final int CRYPTO_BOX_PUBLICKEYBYTESConstant defining the size of a public key used when encrypting/decrypting a message withMessageWriter
andMessageReader
.- See Also:
-
CRYPTO_BOX_SECRETKEYBYTES
public static final int CRYPTO_BOX_SECRETKEYBYTESConstant defining the size of a private key used when encrypting/decrypting a message withMessageWriter
andMessageReader
.- See Also:
-
CRYPTO_SIGN_PUBLICKEYBYTES
public static final int CRYPTO_SIGN_PUBLICKEYBYTESConstant defining the size of a public key used when signing/verifying a message withMessageWriter
andMessageReader
.- See Also:
-
CRYPTO_SIGN_SECRETKEYBYTES
public static final int CRYPTO_SIGN_SECRETKEYBYTESConstant defining the size of a private key used when signing/verifying a message withMessageWriter
andMessageReader
.- See Also:
-
CRYPTO_SECRETBOX_KEYBYTES
public static final int CRYPTO_SECRETBOX_KEYBYTESConstant defining the size of a symmetric key used when signcrypting/verifying a message withMessageWriter
andMessageReader
.- See Also:
-
ALPHABET_BASE64
BASE64 alphabet constant forUtils
baseX
methods.- See Also:
-
ALPHABET_BASE62
BASE62 alphabet constant forUtils
baseX
methods.- See Also:
-
ALPHABET_BASE85
BASE85 alphabet constant forUtils
baseX
methods.- See Also:
-
CRYPTO_PWHASH_SALTBYTES
public static final int CRYPTO_PWHASH_SALTBYTESConstant defining the length of the salt required byUtils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-
CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE
public static final int CRYPTO_PWHASH_OPSLIMIT_INTERACTIVEConstant defining the maximum amount of computations.Useful for
Utils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-
CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE
public static final int CRYPTO_PWHASH_MEMLIMIT_INTERACTIVEConstant defining the maximum amount of RAM.Useful for
Utils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-
CRYPTO_PWHASH_OPSLIMIT_MODERATE
public static final int CRYPTO_PWHASH_OPSLIMIT_MODERATEConstant defining the maximum amount of computations.Useful for
Utils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-
CRYPTO_PWHASH_MEMLIMIT_MODERATE
public static final int CRYPTO_PWHASH_MEMLIMIT_MODERATEConstant defining the maximum amount of RAM.Useful for
Utils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-
CRYPTO_PWHASH_OPSLIMIT_SENSITIVE
public static final int CRYPTO_PWHASH_OPSLIMIT_SENSITIVEConstant defining the maximum amount of computations.Useful for
Utils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-
CRYPTO_PWHASH_MEMLIMIT_SENSITIVE
public static final int CRYPTO_PWHASH_MEMLIMIT_SENSITIVEConstant defining the maximum amount of RAM.Useful for
Utils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
.- See Also:
-