chat_proto/gen/rust/src/logoschat/encryption/logoschat.encryption.rs
Jazz Turner-Baggs 2fc0a52b6b
clean up
2026-01-14 23:18:25 -08:00

56 lines
1.9 KiB
Rust

// @generated
// This file is @generated by prost-build.
/// TODO: This also encompasses plaintexts, is there a better name?
/// Alternatives: ???
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct EncryptedPayload {
#[prost(oneof="encrypted_payload::Encryption", tags="1, 2, 3")]
pub encryption: ::core::option::Option<encrypted_payload::Encryption>,
}
/// Nested message and enum types in `EncryptedPayload`.
pub mod encrypted_payload {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum Encryption {
#[prost(message, tag="1")]
Plaintext(super::Plaintext),
#[prost(message, tag="2")]
Doubleratchet(super::Doubleratchet),
#[prost(message, tag="3")]
Xk0(super::Xk0),
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Plaintext {
#[prost(bytes="bytes", tag="1")]
pub payload: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Doubleratchet {
/// 32 byte array
#[prost(bytes="bytes", tag="1")]
pub dh: ::prost::bytes::Bytes,
#[prost(uint32, tag="2")]
pub msg_num: u32,
#[prost(uint32, tag="3")]
pub prev_chain_len: u32,
#[prost(bytes="bytes", tag="4")]
pub ciphertext: ::prost::bytes::Bytes,
#[prost(string, tag="5")]
pub aux: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Xk0 {
#[prost(bytes="bytes", tag="1")]
pub initiator_static: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="2")]
pub initiator_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="3")]
pub responder_static: ::prost::bytes::Bytes,
/// Replace with RKI to save bytes
#[prost(bytes="bytes", tag="4")]
pub responder_ephemeral: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="5")]
pub payload: ::prost::bytes::Bytes,
}
// @@protoc_insertion_point(module)