pub struct NikonEncryptionKeys {
pub serial_number: Option<String>,
pub shutter_count: Option<u32>,
pub camera_model: String,
pub additional_params: HashMap<String, String>,
}
Expand description
Nikon encryption key management system ExifTool: Nikon.pm encryption key storage and validation
Fields§
§serial_number: Option<String>
Camera serial number for encryption (tag 0x001d) ExifTool: $$et{NikonSerialKey} = $val
shutter_count: Option<u32>
Shutter count for encryption (tag 0x00a7)
ExifTool: $$et{NikonCountKey} = $val
camera_model: String
Camera model for algorithm selection ExifTool: Model-specific decryption handling
additional_params: HashMap<String, String>
Additional encryption parameters (future use) ExifTool: Various model-specific encryption parameters
Implementations§
Source§impl NikonEncryptionKeys
impl NikonEncryptionKeys
Sourcepub fn new(model: String) -> Self
pub fn new(model: String) -> Self
Create new encryption key manager for a Nikon camera ExifTool: Initialize encryption context for camera model
Sourcepub fn store_serial_key(&mut self, serial: String)
pub fn store_serial_key(&mut self, serial: String)
Store serial number encryption key ExifTool: Nikon.pm:1234 - if ($tagID == 0x001d) { $$et{NikonSerialKey} = $val; }
Sourcepub fn store_count_key(&mut self, count: u32)
pub fn store_count_key(&mut self, count: u32)
Store shutter count encryption key ExifTool: Nikon.pm:1267 - if ($tagID == 0x00a7) { $$et{NikonCountKey} = $val; }
Sourcepub fn has_required_keys(&self) -> bool
pub fn has_required_keys(&self) -> bool
Check if required encryption keys are available ExifTool: Validation before ProcessNikonEncrypted
Sourcepub fn get_serial_key(&self) -> Option<&str>
pub fn get_serial_key(&self) -> Option<&str>
Get serial number key if available ExifTool: Access to $$et{NikonSerialKey}
Sourcepub fn get_count_key(&self) -> Option<u32>
pub fn get_count_key(&self) -> Option<u32>
Get shutter count key if available ExifTool: Access to $$et{NikonCountKey}
Sourcepub fn set_parameter(&mut self, key: String, value: String)
pub fn set_parameter(&mut self, key: String, value: String)
Store additional encryption parameter ExifTool: Model-specific parameter storage
Sourcepub fn get_parameter(&self, key: &str) -> Option<&str>
pub fn get_parameter(&self, key: &str) -> Option<&str>
Get encryption parameter ExifTool: Model-specific parameter retrieval
Trait Implementations§
Source§impl Clone for NikonEncryptionKeys
impl Clone for NikonEncryptionKeys
Source§fn clone(&self) -> NikonEncryptionKeys
fn clone(&self) -> NikonEncryptionKeys
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more