X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/4ff28458ffac5e6e7e5a40d17e1f65786f2b0b0e..9942d967a4a83230aadd21c86344c6f1ac246611:/src/main/java/org/asamk/signal/manager/KeyUtils.java diff --git a/src/main/java/org/asamk/signal/manager/KeyUtils.java b/src/main/java/org/asamk/signal/manager/KeyUtils.java index bd093e79..21f6037f 100644 --- a/src/main/java/org/asamk/signal/manager/KeyUtils.java +++ b/src/main/java/org/asamk/signal/manager/KeyUtils.java @@ -26,16 +26,8 @@ class KeyUtils { return getSecret(18); } - static byte[] createGroupId() { - return getSecretBytes(16); - } - - static byte[] createUnrestrictedUnidentifiedAccess() { - return getSecretBytes(16); - } - static byte[] createStickerUploadKey() { - return getSecretBytes(64); + return getSecretBytes(32); } private static String getSecret(int size) { @@ -43,7 +35,7 @@ class KeyUtils { return Base64.encodeBytes(secret); } - private static byte[] getSecretBytes(int size) { + static byte[] getSecretBytes(int size) { byte[] secret = new byte[size]; RandomUtils.getSecureRandom().nextBytes(secret); return secret;