You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2023/11/30 21:57:27 UTC

(commons-crypto) branch master updated: Javadoc [skip ci]

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c5bc130 Javadoc [skip ci]
4c5bc130 is described below

commit 4c5bc130dd331adc4a3dd240b29b6b0ba6c4308c
Author: Sebb <se...@apache.org>
AuthorDate: Thu Nov 30 21:57:18 2023 +0000

    Javadoc [skip ci]
---
 src/main/java/org/apache/commons/crypto/Crypto.java      | 1 +
 src/main/java/org/apache/commons/crypto/utils/Utils.java | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/crypto/Crypto.java b/src/main/java/org/apache/commons/crypto/Crypto.java
index f633f5fb..b73e3597 100644
--- a/src/main/java/org/apache/commons/crypto/Crypto.java
+++ b/src/main/java/org/apache/commons/crypto/Crypto.java
@@ -112,6 +112,7 @@ public final class Crypto {
      */
     public static final String MACOS_LIBRARY_NAME_DEFAULT = "libcrypto.dylib";
 
+    /** If true, print some debug output */
     public static final boolean IS_DEBUG = Boolean.getBoolean(Crypto.CONF_PREFIX + "debug");
 
     private static boolean quiet;
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index fbc61ec2..57bfc3da 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -37,7 +37,10 @@ import org.apache.commons.crypto.cipher.CryptoCipherFactory;
  */
 public final class Utils {
 
-    public static final int BYTE_MASK = 0xFF; // mask to keep a byte from a longer number
+    /** mask to keep a byte from a longer number */
+    public static final int BYTE_MASK = 0xFF;
+
+    /** maximum number of OpenSslVersion entries to retrieve  */
     public static final int OPENSSL_VERSION_MAX_INDEX = 20; // max seen so far is 9, but leave some spare
 
     private static final class DefaultPropertiesHolder {