mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
1) Split code into v1 and v2 message paths. 2) Do the Axolotl protocol for v2. 3) Switch all v2 entities to protobuf.
18 lines
614 B
Java
18 lines
614 B
Java
package org.whispersystems.textsecure.crypto.protocol;
|
|
|
|
public interface CiphertextMessage {
|
|
|
|
public static final int LEGACY_VERSION = 1;
|
|
public static final int CURRENT_VERSION = 2;
|
|
|
|
public static final int LEGACY_WHISPER_TYPE = 1;
|
|
public static final int CURRENT_WHISPER_TYPE = 2;
|
|
public static final int PREKEY_WHISPER_TYPE = 3;
|
|
|
|
// This should be the worst case (worse than V2). So not always accurate, but good enough for padding.
|
|
public static final int ENCRYPTED_MESSAGE_OVERHEAD = WhisperMessageV1.ENCRYPTED_MESSAGE_OVERHEAD;
|
|
|
|
public byte[] serialize();
|
|
public int getType();
|
|
|
|
} |