From b68575dd1610373343cd3731fbb98707304975d1 Mon Sep 17 00:00:00 2001 From: signal-stickers <59041698+signal-stickers@users.noreply.github.com> Date: Mon, 30 Mar 2020 15:19:17 -0400 Subject: [PATCH] Use correct sticker pack key length of 32. (#288) * Use correct sticker pack key length of 32. * Update dependencies Co-authored-by: AsamK --- build.gradle | 2 +- src/main/java/org/asamk/signal/manager/KeyUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index c79688df..0c842875 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ repositories { } dependencies { - compile 'com.github.turasa:signal-service-java:2.15.3_unofficial_5' + compile 'com.github.turasa:signal-service-java:2.15.3_unofficial_6' compile 'org.bouncycastle:bcprov-jdk15on:1.64' compile 'net.sourceforge.argparse4j:argparse4j:0.8.1' compile 'org.freedesktop.dbus:dbus-java:2.7.0' diff --git a/src/main/java/org/asamk/signal/manager/KeyUtils.java b/src/main/java/org/asamk/signal/manager/KeyUtils.java index bd093e79..fff8179c 100644 --- a/src/main/java/org/asamk/signal/manager/KeyUtils.java +++ b/src/main/java/org/asamk/signal/manager/KeyUtils.java @@ -35,7 +35,7 @@ class KeyUtils { } static byte[] createStickerUploadKey() { - return getSecretBytes(64); + return getSecretBytes(32); } private static String getSecret(int size) {