Create BQP API

This commit is contained in:
str4d
2016-02-02 05:52:30 +00:00
parent d2d8d9d46e
commit ce7c189923
15 changed files with 223 additions and 0 deletions

View File

@@ -3,6 +3,17 @@ package org.briarproject.api.keyagreement;
public interface KeyAgreementConstants {
/** The current version of the BQP protocol. */
byte PROTOCOL_VERSION = 1;
/** The length of the record header in bytes. */
int RECORD_HEADER_LENGTH = 4;
/** The offset of the payload length in the record header, in bytes. */
int RECORD_HEADER_PAYLOAD_LENGTH_OFFSET = 2;
/** The length of the BQP key commitment in bytes. */
int COMMIT_LENGTH = 16;
long CONNECTION_TIMEOUT = 20 * 1000; // Milliseconds
}