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 StringBASE62 alphabet constant forUtilsbaseXmethods.static final StringBASE64 alphabet constant forUtilsbaseXmethods.static final StringBASE85 alphabet constant forUtilsbaseXmethods.static final intConstant defining the size of a public key used when encrypting/decrypting a message withMessageWriterandMessageReader.static final intConstant defining the size of a private key used when encrypting/decrypting a message withMessageWriterandMessageReader.static final intConstant defining the maximum amount of RAM.static final intConstant defining the maximum amount of RAM.static final intConstant defining the maximum amount of RAM.static final intConstant defining the maximum amount of computations.static final intConstant defining the maximum amount of computations.static final intConstant defining the maximum amount of computations.static final intConstant defining the length of the salt required byUtils.deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit).static final intConstant defining the size of a symmetric key used when signcrypting/verifying a message withMessageWriterandMessageReader.static final intConstant defining the size of a public key used when signing/verifying a message withMessageWriterandMessageReader.static final intConstant defining the size of a private key used when signing/verifying a message withMessageWriterandMessageReader. -
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 withMessageWriterandMessageReader.- 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 withMessageWriterandMessageReader.- 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 withMessageWriterandMessageReader.- 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 withMessageWriterandMessageReader.- 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 withMessageWriterandMessageReader.- See Also:
-
ALPHABET_BASE64
BASE64 alphabet constant forUtilsbaseXmethods.- See Also:
-
ALPHABET_BASE62
BASE62 alphabet constant forUtilsbaseXmethods.- See Also:
-
ALPHABET_BASE85
BASE85 alphabet constant forUtilsbaseXmethods.- 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:
-