Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addBlock(byte[], boolean) - Method in class com.gherynos.libsaltpack.MessageWriter
-
Adds a block to the current message.
- addBlock(byte[], int, int, boolean) - Method in class com.gherynos.libsaltpack.MessageWriter
-
Adds a block to the current message.
- ALPHABET_BASE62 - Static variable in class com.gherynos.libsaltpack.Constants
-
BASE62 alphabet constant for
Utils
baseX
methods. - ALPHABET_BASE64 - Static variable in class com.gherynos.libsaltpack.Constants
-
BASE64 alphabet constant for
Utils
baseX
methods. - ALPHABET_BASE85 - Static variable in class com.gherynos.libsaltpack.Constants
-
BASE85 alphabet constant for
Utils
baseX
methods.
B
- baseXblockSize(String, int) - Static method in class com.gherynos.libsaltpack.Utils
-
Returns the number of required characters to represent in BaseX, for a given
alphabet
,size
characters. - baseXdecode(String, String) - Static method in class com.gherynos.libsaltpack.Utils
-
Decodes the string from BaseX and the given
alphabet
. - baseXencode(byte[], int, String) - Static method in class com.gherynos.libsaltpack.Utils
-
Encodes the data in BaseX using the given
alphabet
. - baseXencode(byte[], String) - Static method in class com.gherynos.libsaltpack.Utils
-
Encodes the data in BaseX using the given
alphabet
. - binToHex(byte[]) - Static method in class com.gherynos.libsaltpack.Utils
-
Binary to hexadecimal encoding.
C
- com.gherynos.libsaltpack - package com.gherynos.libsaltpack
- Constants - Class in com.gherynos.libsaltpack
-
Constants for key sizes and alphabets.
- CRYPTO_BOX_PUBLICKEYBYTES - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the size of a public key used when encrypting/decrypting a message with
MessageWriter
andMessageReader
. - CRYPTO_BOX_SECRETKEYBYTES - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the size of a private key used when encrypting/decrypting a message with
MessageWriter
andMessageReader
. - CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the maximum amount of RAM.
- CRYPTO_PWHASH_MEMLIMIT_MODERATE - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the maximum amount of RAM.
- CRYPTO_PWHASH_MEMLIMIT_SENSITIVE - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the maximum amount of RAM.
- CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the maximum amount of computations.
- CRYPTO_PWHASH_OPSLIMIT_MODERATE - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the maximum amount of computations.
- CRYPTO_PWHASH_OPSLIMIT_SENSITIVE - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the maximum amount of computations.
- CRYPTO_PWHASH_SALTBYTES - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the length of the salt required by
deriveKeyFromPassword(long keySize, char[] password, byte[] salt, long opsLimit, long memLimit)
. - CRYPTO_SECRETBOX_KEYBYTES - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the size of a symmetric key used when signcrypting/verifying a message with
MessageWriter
andMessageReader
. - CRYPTO_SIGN_PUBLICKEYBYTES - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the size of a public key used when signing/verifying a message with
MessageWriter
andMessageReader
. - CRYPTO_SIGN_SECRETKEYBYTES - Static variable in class com.gherynos.libsaltpack.Constants
-
Constant defining the size of a private key used when signing/verifying a message with
MessageWriter
andMessageReader
.
D
- deriveKeyFromPassword(long, char[], byte[], long, long) - Static method in class com.gherynos.libsaltpack.Utils
-
Wrapper for the `crypto_pwhash` function from `libsodium`.
- derivePublickey(byte[]) - Static method in class com.gherynos.libsaltpack.Utils
-
Derives the public key from a private key.
- destroy() - Method in class com.gherynos.libsaltpack.MessageReader
-
Desctructor.
- destroy() - Method in class com.gherynos.libsaltpack.MessageWriter
-
Desctructor.
G
- generateKeypair(byte[], byte[]) - Static method in class com.gherynos.libsaltpack.Utils
-
Generates an encryption keypair using `libsodium`.
- generateRandomBytes(long) - Static method in class com.gherynos.libsaltpack.Utils
-
Generates some random bytes using `libsodium`.
- generateSignKeypair(byte[], byte[]) - Static method in class com.gherynos.libsaltpack.Utils
-
Generates a signing keypair using `libsodium`.
- getApp() - Method in class com.gherynos.libsaltpack.InputParameters
-
Returns the name of the application (used when
armored
is set to true). - getApp() - Method in class com.gherynos.libsaltpack.OutputParameters
-
Returns the name of the application (used when
armored
is set to true). - getBlock() - Method in class com.gherynos.libsaltpack.MessageReader
-
Returns the next block of the decrypted/verified message.
- getInputStream() - Method in class com.gherynos.libsaltpack.InputParameters
-
Returns the instance of
InputStream
. - getLettersInWords() - Method in class com.gherynos.libsaltpack.OutputParameters
-
Returns the total number of letters in a word (used when
armored
is set to true). - getOutputStream() - Method in class com.gherynos.libsaltpack.OutputParameters
-
Returns the instance of
OutputStream
. - getRecipients() - Method in class com.gherynos.libsaltpack.MessageReader
-
Returns the public keys of the recipients if they're visible (see flag
visibleRecipients
inMessageWriter
). - getSender() - Method in class com.gherynos.libsaltpack.MessageReader
-
Returns the public key of the sender.
- getWordsInPhrase() - Method in class com.gherynos.libsaltpack.OutputParameters
-
Returns the total number of words in a phrase (used when
armored
is set to true).
H
- hasMoreBlocks() - Method in class com.gherynos.libsaltpack.MessageReader
-
Helper method to process all the blocks.
- hexToBin(String) - Static method in class com.gherynos.libsaltpack.Utils
-
Hexadecial to binary encoding.
I
- InputParameters - Class in com.gherynos.libsaltpack
-
POJO class containing the InputStream and the parameters to parse BaseX armored content.
- InputParameters(InputStream) - Constructor for class com.gherynos.libsaltpack.InputParameters
-
Creates a new InputParameters instance for a specific InputStream.
- intParamsPopulated() - Method in class com.gherynos.libsaltpack.OutputParameters
-
Internal method used by the JNI interface.
- isArmored() - Method in class com.gherynos.libsaltpack.InputParameters
-
Armored content flag.
- isArmored() - Method in class com.gherynos.libsaltpack.OutputParameters
-
Armored content flag.
- isIntentionallyAnonymous() - Method in class com.gherynos.libsaltpack.MessageReader
-
Sender's anonimity status (see
MessageWriter(OutputParameters, byte[][])
).
L
- Loader - Class in com.gherynos.libsaltpack
- loadLibrary() - Static method in class com.gherynos.libsaltpack.Loader
M
- main(String[]) - Static method in class com.gherynos.libsaltpack.Loader
- MessageReader - Class in com.gherynos.libsaltpack
-
The class used to decrypt or verify a message.
- MessageReader(InputParameters) - Constructor for class com.gherynos.libsaltpack.MessageReader
-
Creates a new MessageReader instance to verify a signed message.
- MessageReader(InputParameters, byte[]) - Constructor for class com.gherynos.libsaltpack.MessageReader
-
Creates a new MessageReader instance to decrypt a message.
- MessageReader(InputParameters, byte[], byte[][]) - Constructor for class com.gherynos.libsaltpack.MessageReader
-
Creates a new MessageReader instance to decrypt and verify a signcrypted message.
- MessageReader(InputParameters, InputStream) - Constructor for class com.gherynos.libsaltpack.MessageReader
-
Creates a new MessageReader instance to verify a signed message.
- MessageWriter - Class in com.gherynos.libsaltpack
-
The class used to encrypt or sign a message.
- MessageWriter(OutputParameters, byte[][]) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to encrypt a message remaining anonymous.
- MessageWriter(OutputParameters, byte[][], boolean) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to encrypt a message remaining anonymous.
- MessageWriter(OutputParameters, byte[][], byte[][][]) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to signcrypt a message remaining anonymous.
- MessageWriter(OutputParameters, byte[], boolean) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to sign a message.
- MessageWriter(OutputParameters, byte[], byte[][]) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to encrypt a message.
- MessageWriter(OutputParameters, byte[], byte[][], boolean) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to encrypt a message.
- MessageWriter(OutputParameters, byte[], byte[][], byte[][][]) - Constructor for class com.gherynos.libsaltpack.MessageWriter
-
Creates a new MessageWriter instance to signcrypt a message.
O
- OutputParameters - Class in com.gherynos.libsaltpack
-
POJO class containing the OutputStream and the parameters to generate BaseX armored content.
- OutputParameters(OutputStream) - Constructor for class com.gherynos.libsaltpack.OutputParameters
-
Creates a new OutputParameters instance for a specific OutputStream.
S
- SaltpackException - Exception in com.gherynos.libsaltpack
-
Saltpack exception.
- SaltpackException(String) - Constructor for exception com.gherynos.libsaltpack.SaltpackException
- setApp(String) - Method in class com.gherynos.libsaltpack.InputParameters
-
Sets the name of the application (used when
armored
is set to true). - setApp(String) - Method in class com.gherynos.libsaltpack.OutputParameters
-
Sets the name of the application (used when
armored
is set to true). - setArmored(boolean) - Method in class com.gherynos.libsaltpack.InputParameters
-
Armored content flag.
- setArmored(boolean) - Method in class com.gherynos.libsaltpack.OutputParameters
-
Armored content flag.
- setLettersInWords(int) - Method in class com.gherynos.libsaltpack.OutputParameters
-
Sets the total number of letters in a word (used when
armored
is set to true). - setWordsInPhrase(int) - Method in class com.gherynos.libsaltpack.OutputParameters
-
Sets the total number of words in a phrase (used when
armored
is set to true).
U
- Utils - Class in com.gherynos.libsaltpack
-
Utilities class.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form