Enforce key-ids fit in a positive signed 32-bit int

This commit is contained in:
Ravi Khadiwala authored and Chris Eager committed 2026-04-29 10:28:15 -05:00
1 parent de5cb3370d
commit b441fde213
2 files changed
+4 -4

No files matched your search

@@ -5,7 +5,7 @@
package org.whispersystems.textsecuregcm.storage;
public class KeyIdUtil {
public static final long MAX_KEY_ID = (1L << 32) - 1;
public static final long MAX_KEY_ID = (1L << 31) - 1;
public static final long MIN_KEY_ID = 0;
private KeyIdUtil(){}