Don't consider copyOf() and clone() in ArrayUpdate

This commit is contained in:
Fosstars
2021-08-25 12:11:34 +02:00
parent fbac5891b8
commit c80a1da483
2 changed files with 2 additions and 11 deletions

View File

@@ -153,7 +153,8 @@ public class StaticInitializationVector {
byte[] randomBytes = new byte[16];
SecureRandom.getInstanceStrong().nextBytes(randomBytes);
byte[] iv = Arrays.copyOf(randomBytes, 16);
byte[] iv = new byte[16];
iv = Arrays.copyOf(randomBytes, 16);
GCMParameterSpec ivSpec = new GCMParameterSpec(128, iv);
SecretKeySpec keySpec = new SecretKeySpec(key, "AES");