pub struct TactKeyStore { /* private fields */ }Expand description
Stores TACT encryption keys (key_name u64 -> 16-byte key value).
Implementations§
Source§impl TactKeyStore
impl TactKeyStore
Sourcepub fn with_known_keys() -> Self
pub fn with_known_keys() -> Self
Create a key store pre-populated with community-known WoW TACT keys.
Sourcepub fn load_keyfile(path: &Path) -> Result<Self>
pub fn load_keyfile(path: &Path) -> Result<Self>
Load a key store from a text file.
Format: one key per line as hex_key_name hex_key_value.
Lines starting with # and blank lines are ignored.
Sourcepub fn merge(&mut self, other: &TactKeyStore)
pub fn merge(&mut self, other: &TactKeyStore)
Merge keys from another store into this one. Existing keys are overwritten if the other store has the same key name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TactKeyStore
impl RefUnwindSafe for TactKeyStore
impl Send for TactKeyStore
impl Sync for TactKeyStore
impl Unpin for TactKeyStore
impl UnsafeUnpin for TactKeyStore
impl UnwindSafe for TactKeyStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more