Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 8, 2023
1 parent 75b99d3 commit e0d6fe0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void close() {
public int doFinal(final byte[] input, final int inputOffset, final int inputLen,
final byte[] output, final int outputOffset) throws ShortBufferException,
IllegalBlockSizeException, BadPaddingException {
return openSslEngine.doFinal(input, inputOffset, inputLen, output,outputOffset);
return openSslEngine.doFinal(input, inputOffset, inputLen, output, outputOffset);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public boolean isOpen() {
/**
* Overrides the {@link InputStream#markSupported()}.
*
* @return false,the {@link CtrCryptoInputStream} don't support the mark
* @return false, the {@link CtrCryptoInputStream} don't support the mark
* method.
*/
@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/crypto/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static String libraryPath(final String name) {

/**
* Splits class names sequence into substrings, Trim each substring into an
* entry,and returns an list of the entries.
* entry, and returns an list of the entries.
*
* @param clazzNames a string consist of a list of the entries joined by a
* delimiter, may be null or empty in which case an empty list is returned.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static void main(final String[] args) throws Exception {
// Show the data is there
System.out.println("inBuffer=" + asString(inBuffer));

// Initializes the cipher with ENCRYPT_MODE,key and iv.
// Initializes the cipher with ENCRYPT_MODE, key and iv.
encipher.init(Cipher.ENCRYPT_MODE, key, iv);
// Continues a multiple-part encryption/decryption operation for byte buffer.
updateBytes = encipher.update(inBuffer, outBuffer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ protected void doExceptionTest(final String cipherClass, final ByteArrayOutputSt
assertEquals(ex.getMessage(),"Illegal parameters");

// Test Invalid Key
assertThrows(IOException.class, () -> newCryptoInputStream(transformation,props, new ByteArrayInputStream(encData),
assertThrows(IOException.class, () -> newCryptoInputStream(transformation, props, new ByteArrayInputStream(encData),
AES.newSecretKeySpec(new byte[10]), new IvParameterSpec(iv), withChannel));
// Test Invalid Key
assertThrows(IOException.class, () -> newCryptoOutputStream(transformation, props, baos, new byte[10],
Expand Down

0 comments on commit e0d6fe0

Please sign in to comment.