diff --git a/src/backup.rs b/src/backup.rs index 2c5f105d..75565ba2 100644 --- a/src/backup.rs +++ b/src/backup.rs @@ -107,6 +107,15 @@ macro_rules! PROXMOX_BACKUP_PROTOCOL_ID_V1 { () => { "proxmox-backup-protocol-v1" } } +// WARNING: PLEASE DO NOT MODIFY THOSE MAGIC VALUES + +// openssl::sha::sha256(b"Proxmox Backup encrypted chunk v1.0")[0..8]) +pub static ENCRYPTED_CHUNK_MAGIC_1_0: [u8; 8] = [8, 54, 114, 153, 70, 156, 26, 151]; + +// openssl::sha::sha256(b"Proxmox Backup zstd compressed chunk v1.0")[0..8] +pub static COMPRESSED_CHUNK_MAGIC_1_0: [u8; 8] = [191, 237, 46, 195, 108, 17, 228, 235]; + + mod crypt_setup; pub use crypt_setup::*;