DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/Enhanced/SecureMessageChannel/EncryptedMessage.rs
1//! Serialised encrypted-message envelope - key id (so
2//! decryption can find the right key during rotation), nonce,
3//! AES-256-GCM ciphertext, HMAC tag, and a millisecond
4//! timestamp used for replay-window enforcement.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct Struct {
10 pub key_id:String,
11
12 pub nonce:Vec<u8>,
13
14 pub ciphertext:Vec<u8>,
15
16 pub hmac_tag:Vec<u8>,
17
18 pub timestamp:u64,
19}