Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreet- committed Jul 31, 2021
1 parent e1fdbee commit e24bfc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ boolean cryptoSecretStreamInitPush(

/**
* Encrypt a {@code message}.
* @param state State as initialised in {@link #cryptoSecretStreamInitPush(State, byte[], byte[])}}.
* @param state State as initialised in cryptoSecretStreamInitPush.
* @param cipher The resulting cipher of size {@link #ABYTES} + {@code messageLen}.
* @param cipherAddr The cipher address will be stored here if not null.
* @param message The message to encrypt.
Expand Down Expand Up @@ -119,7 +119,7 @@ boolean cryptoSecretStreamPush(
/**
* Encrypt a {@code message}. This is like cryptoSecretStreamPush
* but without additional data or an address to store the cipher.
* @param state State as initialised in {@link #cryptoSecretStreamInitPush(State, byte[], byte[])}}.
* @param state State as initialised in cryptoSecretStreamInitPush.
* @param cipher The resulting cipher of size {@link #ABYTES} + {@code messageLen}.
* @param message The message to encrypt.
* @param messageLen The message length.
Expand Down Expand Up @@ -151,7 +151,7 @@ boolean cryptoSecretStreamInitPull(

/**
* Decrypt a message.
* @param state The state as put into {@link #cryptoSecretStreamInitPull(State, byte[], byte[])}.
* @param state The state as put into cryptoSecretStreamInitPull.
* @param message The message of size {@code cipherLen} - {@link #ABYTES}.
* @param messageAddress The place to store the message.
* @param tag The tag.
Expand All @@ -174,7 +174,7 @@ boolean cryptoSecretStreamPull(

/**
* Decrypt a message without additional data.
* @param state The state as put into {@link #cryptoSecretStreamInitPull(State, byte[], byte[])}.
* @param state The state as put into cryptoSecretStreamInitPull.
* @param message The message of size {@code cipherLen} - {@link #ABYTES}.
* @param tag The tag.
* @param cipher The resulting encrypted message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ private void loadBundledLibrary() {

/**
* Returns the absolute path to sodium library inside JAR (beginning with '/'), e.g. /linux/libsodium.so.
* @return The path to the libsodium binary.
*/
public static String getSodiumPathInResources() {
boolean is64Bit = Native.POINTER_SIZE == 8;
Expand Down

0 comments on commit e24bfc5

Please sign in to comment.