You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/12/18 20:59:38 UTC
[commons-crypto] branch master updated: Remove trailing white
spaces on all lines.
This is an automated email from the ASF dual-hosted git repository.
ggregory 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 836bee5 Remove trailing white spaces on all lines.
836bee5 is described below
commit 836bee5cff18dbf27101adbaadb677a0ba6bfd0a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 18 15:29:06 2019 -0500
Remove trailing white spaces on all lines.
---
.../java/org/apache/commons/crypto/Crypto.java | 6 ++---
.../apache/commons/crypto/NativeCodeLoader.java | 4 ++--
.../apache/commons/crypto/OpenSslInfoNative.java | 10 ++++----
.../commons/crypto/cipher/CryptoCipherFactory.java | 2 +-
.../commons/crypto/jna/OpenSsl10XNativeJna.java | 28 +++++++++++-----------
.../commons/crypto/jna/OpenSsl11XNativeJna.java | 22 ++++++++---------
.../org/apache/commons/crypto/jna/OpenSslJna.java | 2 +-
.../commons/crypto/jna/OpenSslJnaCipher.java | 10 ++++----
.../commons/crypto/jna/OpenSslJnaCryptoRandom.java | 20 ++++++++--------
.../crypto/random/OpenSslCryptoRandomNative.java | 2 +-
.../commons/crypto/stream/CryptoInputStream.java | 2 +-
.../crypto/stream/CtrCryptoInputStream.java | 2 +-
.../java/org/apache/commons/crypto/CryptoTest.java | 2 +-
.../commons/crypto/NativeCodeLoaderTest.java | 2 +-
.../crypto/examples/CipherByteBufferExample.java | 2 +-
.../jna/PositionedCryptoInputStreamJnaTest.java | 2 +-
.../commons/crypto/random/AbstractRandom.java | 4 ++--
.../apache/commons/crypto/random/DummyRandom.java | 4 ++--
.../commons/crypto/random/FailingRandom.java | 2 +-
.../crypto/stream/AbstractCipherStreamTest.java | 8 +++----
.../org/apache/commons/crypto/utils/EnumTest.java | 2 +-
21 files changed, 69 insertions(+), 69 deletions(-)
diff --git a/src/main/java/org/apache/commons/crypto/Crypto.java b/src/main/java/org/apache/commons/crypto/Crypto.java
index b6fc886..bbaf7c8 100644
--- a/src/main/java/org/apache/commons/crypto/Crypto.java
+++ b/src/main/java/org/apache/commons/crypto/Crypto.java
@@ -77,7 +77,7 @@ public final class Crypto {
/**
* Checks whether the native code has been successfully loaded for the platform.
- *
+ *
* @return true if the native code has been loaded successfully.
*/
public static boolean isNativeCodeLoaded() {
@@ -86,7 +86,7 @@ public final class Crypto {
/**
* The loading error throwable, if loading failed.
- *
+ *
* @return null, unless loading failed.
*/
public static Throwable getLoadingError() {
@@ -151,7 +151,7 @@ public final class Crypto {
System.out.println(j+": "+ OpenSslInfoNative.OpenSSLVersion(j));
}
} else {
- System.out.println("Native load failed: " + getLoadingError());
+ System.out.println("Native load failed: " + getLoadingError());
}
}
}
diff --git a/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java b/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
index edb1973..e957762 100644
--- a/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
+++ b/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
@@ -54,7 +54,7 @@ final class NativeCodeLoader {
/**
* Loads the library if possible.
- *
+ *
* @return null if successful, otherwise the Throwable that was caught
*/
static Throwable loadLibrary() {
@@ -263,7 +263,7 @@ final class NativeCodeLoader {
/**
* Gets the error cause if loading failed.
- *
+ *
* @return null, unless loading failed
*/
static Throwable getLoadingError() {
diff --git a/src/main/java/org/apache/commons/crypto/OpenSslInfoNative.java b/src/main/java/org/apache/commons/crypto/OpenSslInfoNative.java
index 85a3687..b72640d 100644
--- a/src/main/java/org/apache/commons/crypto/OpenSslInfoNative.java
+++ b/src/main/java/org/apache/commons/crypto/OpenSslInfoNative.java
@@ -19,7 +19,7 @@ package org.apache.commons.crypto;
/**
* JNI interface of {@link CryptoRandom} implementation for OpenSSL.
- * The native method in this class is defined in
+ * The native method in this class is defined in
* OpenSslCryptoRandomNative.h (generated at build time by javah)
* and implemented in the file
* src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
@@ -49,16 +49,16 @@ class OpenSslInfoNative {
* @return timestamp of native
*/
public static native String NativeTimeStamp();
-
-
+
+
/**
* @return the value of OPENSSL_VERSION_NUMBER.
*/
public static native long OpenSSL();
-
+
/**
* Returns OpenSSL_version according the version type.
- *
+ *
* @param type The version type
* @return The text variant of the version number and the release date.
*/
diff --git a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
index 669a001..c9fe49a 100644
--- a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
+++ b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
@@ -148,7 +148,7 @@ public class CryptoCipherFactory {
final List<String> names = Utils.splitClassNames(getCipherClassString(props), ",");
if (names.size() == 0) {
- throw new IllegalArgumentException("No classname(s) provided");
+ throw new IllegalArgumentException("No classname(s) provided");
}
CryptoCipher cipher = null;
Exception lastException = null;
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java b/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java
index ed050b2..190caa1 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java
@@ -73,7 +73,7 @@ class OpenSsl10XNativeJna {
/**
* Generates a human-readable string representing the error code e.
- *
+ *
* @see <a>https://www.openssl.org/docs/manmaster/crypto/ERR_error_string.html</a>
*
* @param err
@@ -93,7 +93,7 @@ class OpenSsl10XNativeJna {
/**
* EVP_CIPHER_CTX_init() remains as an alias for EVP_CIPHER_CTX_reset
- *
+ *
* @param p
* cipher context
*/
@@ -101,7 +101,7 @@ class OpenSsl10XNativeJna {
/**
* Enables or disables padding
- *
+ *
* @param c
* cipher context
* @param pad
@@ -142,7 +142,7 @@ class OpenSsl10XNativeJna {
/**
* Init a cipher.
- *
+ *
* @param ctx
* cipher context
* @param cipher
@@ -195,7 +195,7 @@ class OpenSsl10XNativeJna {
/**
* Clears all information from a cipher context and free up any allocated memory associate with
* it, including ctx itself.
- *
+ *
* @param c
* openssl evp cipher
*/
@@ -204,7 +204,7 @@ class OpenSsl10XNativeJna {
/**
* Clears all information from a cipher context and free up any allocated * memory associate
* with it.
- *
+ *
* @param c
* openssl evp cipher
*/
@@ -213,21 +213,21 @@ class OpenSsl10XNativeJna {
// Random generator
/**
* OpenSSL uses for random number generation
- *
+ *
* @return pointers to the respective methods
*/
public static native PointerByReference RAND_get_rand_method();
/**
* OpenSSL uses for random number generation.
- *
+ *
* @return pointers to the respective methods
*/
public static native PointerByReference RAND_SSLeay();
/**
* Generates random data
- *
+ *
* @param buf
* the bytes for generated random.
* @param num
@@ -247,7 +247,7 @@ class OpenSsl10XNativeJna {
/**
* Frees the structural reference
- *
+ *
* @param e
* engine reference.
* @return 0 on success, 1 otherwise.
@@ -256,14 +256,14 @@ class OpenSsl10XNativeJna {
/**
* Cleanups before program exit, it will avoid memory leaks.
- *
+ *
* @return 0 on success, 1 otherwise.
*/
public static native int ENGINE_cleanup();
/**
* Obtains a functional reference from an existing structural reference.
- *
+ *
* @param e
* engine reference
* @return zero if the ENGINE was not already operational and couldn't be successfully
@@ -273,7 +273,7 @@ class OpenSsl10XNativeJna {
/**
* Sets the engine as the default for random number generation.
- *
+ *
* @param e
* engine reference
* @param flags
@@ -284,7 +284,7 @@ class OpenSsl10XNativeJna {
/**
* Gets engine by id
- *
+ *
* @param id
* engine id
* @return engine instance
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java b/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java
index b9c4c0e..f07b2d4 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java
@@ -53,7 +53,7 @@ class OpenSsl11XNativeJna {
/**
* Generates a human-readable string representing the error code e.
- *
+ *
* @see <a>https://www.openssl.org/docs/manmaster/crypto/ERR_error_string.html</a>
*
* @param err
@@ -73,7 +73,7 @@ class OpenSsl11XNativeJna {
/**
* Enables or disables padding
- *
+ *
* @param c
* cipher context
* @param pad
@@ -114,7 +114,7 @@ class OpenSsl11XNativeJna {
/**
* Init a cipher.
- *
+ *
* @param ctx
* cipher context
* @param cipher
@@ -167,7 +167,7 @@ class OpenSsl11XNativeJna {
/**
* Clears all information from a cipher context and free up any allocated memory associate with
* it, including ctx itself.
- *
+ *
* @param c
* openssl evp cipher
*/
@@ -176,7 +176,7 @@ class OpenSsl11XNativeJna {
/**
* Clears all information from a cipher context and free up any allocated * memory associate
* with it.
- *
+ *
* @param c
* openssl evp cipher
*/
@@ -184,14 +184,14 @@ class OpenSsl11XNativeJna {
// Random generator
/**
* OpenSSL uses for random number generation
- *
+ *
* @return pointers to the respective methods
*/
public static native PointerByReference RAND_get_rand_method();
/**
* Generates random data
- *
+ *
* @param buf
* the bytes for generated random.
* @param num
@@ -211,7 +211,7 @@ class OpenSsl11XNativeJna {
/**
* Frees the structural reference
- *
+ *
* @param e
* engine reference.
* @return 0 on success, 1 otherwise.
@@ -220,7 +220,7 @@ class OpenSsl11XNativeJna {
/**
* Obtains a functional reference from an existing structural reference.
- *
+ *
* @param e
* engine reference
* @return zero if the ENGINE was not already operational and couldn't be successfully
@@ -230,7 +230,7 @@ class OpenSsl11XNativeJna {
/**
* Sets the engine as the default for random number generation.
- *
+ *
* @param e
* engine reference
* @param flags
@@ -241,7 +241,7 @@ class OpenSsl11XNativeJna {
/**
* Gets engine by id
- *
+ *
* @param id
* engine id
* @return engine instance
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSslJna.java b/src/main/java/org/apache/commons/crypto/jna/OpenSslJna.java
index da66c5c..061f864 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSslJna.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSslJna.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.crypto.jna;
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
index 3dd1f08..68a217f 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
@@ -67,7 +67,7 @@ class OpenSslJnaCipher implements CryptoCipher {
this.transformation = transformation;
Transform transform = tokenizeTransformation(transformation);
algMode = AlgorithmMode.get(transform.algorithm, transform.mode);
-
+
if(algMode != AlgorithmMode.AES_CBC && algMode != AlgorithmMode.AES_CTR) {
throw new GeneralSecurityException("unknown algorithm "+transform.algorithm + "_" + transform.mode);
}
@@ -103,7 +103,7 @@ class OpenSslJnaCipher implements CryptoCipher {
// supported now.
throw new InvalidAlgorithmParameterException("Illegal parameters");
}
-
+
if(algMode == AlgorithmMode.AES_CBC) {
switch (key.getEncoded().length) {
case 16: algo = OpenSslNativeJna.EVP_aes_128_cbc(); break;
@@ -122,7 +122,7 @@ class OpenSslJnaCipher implements CryptoCipher {
throw new InvalidKeyException("keysize unsupported (" + key.getEncoded().length + ")");
}
}
-
+
int retVal = OpenSslNativeJna.EVP_CipherInit_ex(context, algo, null, key.getEncoded(), iv, cipherMode);
throwOnError(retVal);
OpenSslNativeJna.EVP_CIPHER_CTX_set_padding(context, padding);
@@ -315,7 +315,7 @@ class OpenSslJnaCipher implements CryptoCipher {
if (retVal != 1) {
NativeLong err = OpenSslNativeJna.ERR_peek_error();
String errdesc = OpenSslNativeJna.ERR_error_string(err, null);
-
+
if (context != null) {
OpenSslNativeJna.EVP_CIPHER_CTX_cleanup(context);
}
@@ -372,7 +372,7 @@ class OpenSslJnaCipher implements CryptoCipher {
}
return new Transform(parts[0], parts[1], parts[2]);
}
-
+
/**
* AlgorithmMode of JNA. Currently only support AES/CTR/NoPadding.
*/
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
index b73e0cd..117d5dc 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
@@ -70,7 +70,7 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
int ENGINE_METHOD_RAND = 0x0008;
if(rdrandEngine != null) {
int rc = OpenSslNativeJna.ENGINE_init(rdrandEngine);
-
+
if(rc != 0) {
int rc2 = OpenSslNativeJna.ENGINE_set_default(rdrandEngine, ENGINE_METHOD_RAND);
if(rc2 != 0) {
@@ -78,13 +78,13 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
}
}
}
-
+
} catch (Exception e) {
throw new NoSuchAlgorithmException();
}
-
+
rdrandEnabled = rdrandLoaded;
-
+
if(!rdrandLoaded) {
closeRdrandEngine();
}
@@ -97,11 +97,11 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
*/
@Override
public void nextBytes(byte[] bytes) {
-
+
synchronized (OpenSslJnaCryptoRandom.class) {
//this method is synchronized for now
//to support multithreading https://wiki.openssl.org/index.php/Manual:Threads(3) needs to be done
-
+
if(rdrandEnabled && OpenSslNativeJna.RAND_get_rand_method().equals(OpenSslNativeJna.RAND_SSLeay())) {
close();
throw new RuntimeException("rdrand should be used but default is detected");
@@ -159,7 +159,7 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
public void close() {
closeRdrandEngine();
OpenSslNativeJna.ENGINE_cleanup();
-
+
//cleanup locks
//OpenSslNativeJna.CRYPTO_set_locking_callback(null);
//LOCK.unlock();
@@ -169,7 +169,7 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
* Closes the rdrand engine.
*/
private void closeRdrandEngine() {
-
+
if(rdrandEngine != null) {
OpenSslNativeJna.ENGINE_finish(rdrandEngine);
OpenSslNativeJna.ENGINE_free(rdrandEngine);
@@ -178,7 +178,7 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
/**
* Checks if rdrand engine is used to retrieve random bytes
- *
+ *
* @return true if rdrand is used, false if default engine is used
*/
public boolean isRdrandEnabled() {
@@ -188,7 +188,7 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom {
/**
* @param retVal the result value of error.
*/
- private void throwOnError(int retVal) {
+ private void throwOnError(int retVal) {
if (retVal != 1) {
NativeLong err = OpenSslNativeJna.ERR_peek_error();
String errdesc = OpenSslNativeJna.ERR_error_string(err, null);
diff --git a/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.java b/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.java
index 84b92a6..8b019bf 100644
--- a/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.java
+++ b/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.java
@@ -19,7 +19,7 @@ package org.apache.commons.crypto.random;
/**
* JNI interface of {@link CryptoRandom} implementation for OpenSSL.
- * The native method in this class is defined in
+ * The native method in this class is defined in
* OpenSslCryptoRandomNative.h (generated at build time by javah)
* and implemented in the file
* src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
diff --git a/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java
index bb5ea9b..b346048 100644
--- a/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java
@@ -609,7 +609,7 @@ public class CryptoInputStream extends InputStream implements
.clean(); */
final String SUN_CLASS = "sun.nio.ch.DirectBuffer";
Class<?>[] interfaces = buffer.getClass().getInterfaces();
-
+
for (Class<?> clazz : interfaces) {
if (clazz.getName().equals(SUN_CLASS)) {
final Object[] NO_PARAM = new Object[0];
diff --git a/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java
index 84196f3..ce40c23 100644
--- a/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java
+++ b/src/main/java/org/apache/commons/crypto/stream/CtrCryptoInputStream.java
@@ -648,7 +648,7 @@ public class CtrCryptoInputStream extends CryptoInputStream {
static void calculateIV(byte[] initIV, long counter, byte[] IV) {
Utils.checkArgument(initIV.length == CryptoCipherFactory.AES_BLOCK_SIZE);
Utils.checkArgument(IV.length == CryptoCipherFactory.AES_BLOCK_SIZE);
-
+
int i = IV.length; // IV length
int j = 0; // counter bytes index
int sum = 0;
diff --git a/src/test/java/org/apache/commons/crypto/CryptoTest.java b/src/test/java/org/apache/commons/crypto/CryptoTest.java
index 065ea77..a6004ee 100644
--- a/src/test/java/org/apache/commons/crypto/CryptoTest.java
+++ b/src/test/java/org/apache/commons/crypto/CryptoTest.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.crypto;
diff --git a/src/test/java/org/apache/commons/crypto/NativeCodeLoaderTest.java b/src/test/java/org/apache/commons/crypto/NativeCodeLoaderTest.java
index 02b60de..94ff605 100644
--- a/src/test/java/org/apache/commons/crypto/NativeCodeLoaderTest.java
+++ b/src/test/java/org/apache/commons/crypto/NativeCodeLoaderTest.java
@@ -36,7 +36,7 @@ public class NativeCodeLoaderTest {
// TODO display versions once available
System.out.println("** INFO: Native (JNI) code loaded successfully");
} else {
- System.out.println("** WARN: Native (JNI) code was not loaded: "
+ System.out.println("** WARN: Native (JNI) code was not loaded: "
+ NativeCodeLoader.getLoadingError());
}
}
diff --git a/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java b/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java
index f35ba4c..9a0f010 100644
--- a/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java
+++ b/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java
@@ -93,7 +93,7 @@ public class CipherByteBufferExample {
/**
* Converts ByteBuffer to String
- *
+ *
* @param buffer input byte buffer
* @return the converted string
*/
diff --git a/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java b/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
index 12d2408..2b2d4b4 100644
--- a/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
+++ b/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.crypto.jna;
diff --git a/src/test/java/org/apache/commons/crypto/random/AbstractRandom.java b/src/test/java/org/apache/commons/crypto/random/AbstractRandom.java
index e2581be..313f6c8 100644
--- a/src/test/java/org/apache/commons/crypto/random/AbstractRandom.java
+++ b/src/test/java/org/apache/commons/crypto/random/AbstractRandom.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.crypto.random;
@@ -26,6 +26,6 @@ abstract class AbstractRandom implements CryptoRandom {
// Should fail to instantiate, as it is an abstract class
AbstractRandom(Properties props) {
-
+
}
}
diff --git a/src/test/java/org/apache/commons/crypto/random/DummyRandom.java b/src/test/java/org/apache/commons/crypto/random/DummyRandom.java
index 258f65d..3e1f07d 100644
--- a/src/test/java/org/apache/commons/crypto/random/DummyRandom.java
+++ b/src/test/java/org/apache/commons/crypto/random/DummyRandom.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.crypto.random;
@@ -23,7 +23,7 @@ class DummyRandom implements CryptoRandom {
// Should fail with NoSuchMethodException
DummyRandom() {
-
+
}
@Override
diff --git a/src/test/java/org/apache/commons/crypto/random/FailingRandom.java b/src/test/java/org/apache/commons/crypto/random/FailingRandom.java
index ce19126..14e3935 100644
--- a/src/test/java/org/apache/commons/crypto/random/FailingRandom.java
+++ b/src/test/java/org/apache/commons/crypto/random/FailingRandom.java
@@ -13,7 +13,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
*/
package org.apache.commons.crypto.random;
diff --git a/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java b/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java
index e587370..4b0be67 100644
--- a/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java
+++ b/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java
@@ -347,8 +347,8 @@ public abstract class AbstractCipherStreamTest {
private void doReadWriteTestForInputStream(int count,
String encCipherClass, String decCipherClass, byte[] iv)
throws IOException {
- if (AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME.equals(encCipherClass)
- ||
+ if (AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME.equals(encCipherClass)
+ ||
AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME.equals(decCipherClass)) {
if (!Crypto.isNativeCodeLoaded()) {
return; // Skip this test if no JNI
@@ -415,8 +415,8 @@ public abstract class AbstractCipherStreamTest {
private void doReadWriteTestForReadableByteChannel(int count,
String encCipherClass, String decCipherClass, byte[] iv)
throws IOException {
- if (AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME.equals(encCipherClass)
- ||
+ if (AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME.equals(encCipherClass)
+ ||
AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME.equals(decCipherClass)) {
if (!Crypto.isNativeCodeLoaded()) {
return; // Skip this test if no JNI
diff --git a/src/test/java/org/apache/commons/crypto/utils/EnumTest.java b/src/test/java/org/apache/commons/crypto/utils/EnumTest.java
index 336ae26..72a5f61 100644
--- a/src/test/java/org/apache/commons/crypto/utils/EnumTest.java
+++ b/src/test/java/org/apache/commons/crypto/utils/EnumTest.java
@@ -43,5 +43,5 @@ public class EnumTest {
}
// TODO check if any implementations of CryptoRandom or CryptoCipher are missing from the values
-
+
}