mirror of https://github.com/oxen-io/session-ios
Clean
parent
17b6f65058
commit
870f4d38d7
@ -1,18 +0,0 @@
|
|||||||
PROTOC=protoc \
|
|
||||||
--proto_path='./'
|
|
||||||
WRAPPER_SCRIPT=../../../../session-ios/Scripts/ProtoWrappers.py \
|
|
||||||
--proto-dir='./' --verbose --add-log-tag
|
|
||||||
|
|
||||||
all: webrtc_data_proto unidentified_delivery_protos
|
|
||||||
|
|
||||||
webrtc_data_proto: WhisperTextProtocol.proto
|
|
||||||
$(PROTOC) --swift_out=. \
|
|
||||||
WhisperTextProtocol.proto
|
|
||||||
$(WRAPPER_SCRIPT) --dst-dir=. \
|
|
||||||
--wrapper-prefix=SPKProto --proto-prefix=SPKProtos --proto-file=WhisperTextProtocol.proto
|
|
||||||
|
|
||||||
unidentified_delivery_protos: OWSUnidentifiedDelivery.proto
|
|
||||||
$(PROTOC) --swift_out=../SignalMetadataKit/src/Generated \
|
|
||||||
OWSUnidentifiedDelivery.proto
|
|
||||||
$(WRAPPER_SCRIPT) --dst-dir=../SignalMetadataKit/src/Generated \
|
|
||||||
--wrapper-prefix=SMKProto --proto-prefix=SMKProtos --proto-file=OWSUnidentifiedDelivery.proto
|
|
@ -1,73 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (C) 2014-2016 Open Whisper Systems
|
|
||||||
*
|
|
||||||
* Licensed according to the LICENSE file in this repository.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// iOS - since we use a modern proto-compiler, we must specify
|
|
||||||
// the legacy proto format.
|
|
||||||
syntax = "proto2";
|
|
||||||
|
|
||||||
// iOS - package name determines class prefix
|
|
||||||
package SMKProtos;
|
|
||||||
|
|
||||||
option java_package = "org.signal.libsignal.metadata";
|
|
||||||
option java_outer_classname = "SignalProtos";
|
|
||||||
|
|
||||||
message ServerCertificate {
|
|
||||||
message Certificate {
|
|
||||||
// @required
|
|
||||||
optional uint32 id = 1;
|
|
||||||
// @required
|
|
||||||
optional bytes key = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @required
|
|
||||||
optional bytes certificate = 1;
|
|
||||||
// @required
|
|
||||||
optional bytes signature = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message SenderCertificate {
|
|
||||||
message Certificate {
|
|
||||||
// @required
|
|
||||||
optional string sender = 1;
|
|
||||||
// @required
|
|
||||||
optional uint32 senderDevice = 2;
|
|
||||||
// @required
|
|
||||||
optional fixed64 expires = 3;
|
|
||||||
// @required
|
|
||||||
optional bytes identityKey = 4;
|
|
||||||
// @required
|
|
||||||
optional ServerCertificate signer = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @required
|
|
||||||
optional string sender = 1;
|
|
||||||
// @required
|
|
||||||
optional uint32 senderDevice = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
message UnidentifiedSenderMessage {
|
|
||||||
message Message {
|
|
||||||
enum Type {
|
|
||||||
PREKEY_MESSAGE = 1;
|
|
||||||
MESSAGE = 2;
|
|
||||||
FALLBACK_MESSAGE = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @required
|
|
||||||
optional Type type = 1;
|
|
||||||
// @required
|
|
||||||
optional SenderCertificate senderCertificate = 2;
|
|
||||||
// @required
|
|
||||||
optional bytes content = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @required
|
|
||||||
optional bytes ephemeralPublic = 1;
|
|
||||||
// @required
|
|
||||||
optional bytes encryptedStatic = 2;
|
|
||||||
// @required
|
|
||||||
optional bytes encryptedMessage = 3;
|
|
||||||
}
|
|
@ -1,59 +0,0 @@
|
|||||||
// iOS - since we use a modern proto-compiler, we must specify
|
|
||||||
// the legacy proto format.
|
|
||||||
syntax = "proto2";
|
|
||||||
|
|
||||||
// iOS - package name determines class prefix
|
|
||||||
package SPKProtos;
|
|
||||||
|
|
||||||
message TSProtoWhisperMessage {
|
|
||||||
// @required
|
|
||||||
optional bytes ratchetKey = 1;
|
|
||||||
// @required
|
|
||||||
optional uint32 counter = 2;
|
|
||||||
optional uint32 previousCounter = 3;
|
|
||||||
// @required
|
|
||||||
optional bytes ciphertext = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message TSProtoPreKeyWhisperMessage {
|
|
||||||
optional uint32 registrationId = 5;
|
|
||||||
optional uint32 preKeyId = 1;
|
|
||||||
// @required
|
|
||||||
optional uint32 signedPreKeyId = 6;
|
|
||||||
// @required
|
|
||||||
optional bytes baseKey = 2;
|
|
||||||
// @required
|
|
||||||
optional bytes identityKey = 3;
|
|
||||||
// @required
|
|
||||||
optional bytes message = 4; // WhisperMessage
|
|
||||||
}
|
|
||||||
|
|
||||||
message TSProtoKeyExchangeMessage {
|
|
||||||
optional uint32 id = 1;
|
|
||||||
optional bytes baseKey = 2;
|
|
||||||
optional bytes ratchetKey = 3;
|
|
||||||
optional bytes identityKey = 4;
|
|
||||||
optional bytes baseKeySignature = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
message TSProtoSenderKeyMessage {
|
|
||||||
optional uint32 id = 1;
|
|
||||||
optional uint32 iteration = 2;
|
|
||||||
optional bytes ciphertext = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message TSProtoSenderKeyDistributionMessage {
|
|
||||||
optional uint32 id = 1;
|
|
||||||
optional uint32 iteration = 2;
|
|
||||||
optional bytes chainKey = 3;
|
|
||||||
optional bytes signingKey = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
message ClosedGroupCiphertextMessage {
|
|
||||||
// @required
|
|
||||||
optional bytes ciphertext = 1;
|
|
||||||
// @required
|
|
||||||
optional bytes senderPublicKey = 2;
|
|
||||||
// @required
|
|
||||||
optional uint32 keyIndex = 3;
|
|
||||||
}
|
|
Loading…
Reference in New Issue