Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit ce313ba

Browse files
committed
Helpers are private
1 parent f011b27 commit ce313ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/codehaus/plexus/components/cipher/internal/AESGCMNoPadding.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ public String decrypt(String encryptedText, String password) throws PlexusCipher
9292
}
9393
}
9494

95-
public static byte[] getRandomNonce(int numBytes) throws NoSuchAlgorithmException {
95+
private static byte[] getRandomNonce(int numBytes) throws NoSuchAlgorithmException {
9696
byte[] nonce = new byte[numBytes];
9797
SecureRandom.getInstanceStrong().nextBytes(nonce);
9898
return nonce;
9999
}
100100

101-
public static SecretKey getAESKeyFromPassword(char[] password, byte[] salt)
101+
private static SecretKey getAESKeyFromPassword(char[] password, byte[] salt)
102102
throws NoSuchAlgorithmException, InvalidKeySpecException {
103103
SecretKeyFactory factory = SecretKeyFactory.getInstance(KEY_FACTORY);
104104
KeySpec spec = new PBEKeySpec(password, salt, PBE_ITERATIONS, PBE_KEY_SIZE);

0 commit comments

Comments
 (0)