mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 17:29:38 +01:00
Introduce a canonical constant for UAK length
This commit is contained in:
committed by
Jon Chambers
parent
8ec062fbef
commit
ac0c8b1e9a
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user