src/backup.rs: define magic numbers for chunk store file format
This commit is contained in:
parent
48b4b40b57
commit
c20b17b460
|
@ -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::*;
|
||||
|
||||
|
|
Loading…
Reference in New Issue