Introduce a canonical constant for UAK length

This commit is contained in:
Jon Chambers
2023-10-19 13:28:44 -04:00
committed by Jon Chambers
parent 8ec062fbef
commit ac0c8b1e9a
14 changed files with 86 additions and 74 deletions

View File

@@ -35,7 +35,7 @@ class UnidentifiedAccessUtilTest {
}
private static Stream<Arguments> checkUnidentifiedAccess() {
final byte[] uak = new byte[16];
final byte[] uak = new byte[UnidentifiedAccessUtil.UNIDENTIFIED_ACCESS_KEY_LENGTH];
new SecureRandom().nextBytes(uak);
final byte[] incorrectUak = new byte[uak.length + 1];