pub struct RiddleCxCrypt {
base: SenrenCxCrypt,
decryptor: YuzDecryptor,
key1: u32,
key2: u32,
}Available on crate features
kirikiri and kirikiri-arc only.Fields§
§base: SenrenCxCrypt§decryptor: YuzDecryptor§key1: u32§key2: u32Implementations§
Source§impl RiddleCxCrypt
impl RiddleCxCrypt
pub fn new( base: BaseSchema, schema: &CxSchema, filename: &str, names_section_id: String, random_seed: u32, yuz_key: &[u32], key1: u32, key2: u32, ) -> Result<Arc<Self>>
fn get_key_from_hash(&self, key: u32) -> u64
fn read_yuzu_names<'a>( &self, reader: Box<dyn ReadDebug + 'a>, unpacked_size: u32, ) -> Result<(HashMap<u32, String>, HashMap<String, String>)>
Trait Implementations§
Source§impl AsRef<BaseSchema> for RiddleCxCrypt
impl AsRef<BaseSchema> for RiddleCxCrypt
Source§fn as_ref(&self) -> &BaseSchema
fn as_ref(&self) -> &BaseSchema
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for RiddleCxCrypt
impl Debug for RiddleCxCrypt
Source§impl ICxEncryption for RiddleCxCrypt
impl ICxEncryption for RiddleCxCrypt
Auto Trait Implementations§
impl Freeze for RiddleCxCrypt
impl !RefUnwindSafe for RiddleCxCrypt
impl Send for RiddleCxCrypt
impl Sync for RiddleCxCrypt
impl Unpin for RiddleCxCrypt
impl !UnwindSafe for RiddleCxCrypt
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> 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