EnumsΒ§
- KeyPair
Check πResult
FunctionsΒ§
- check_
key_ πpair - Returns whether the key pair is valid, needs regeneration, or requires a cipher-based user key check to decide.
- internal_
should_ πregenerate_ public_ key_ encryption_ key_ pair - Checks whether the userβs public key encryption key pair needs regeneration.
- internal_
should_ πregenerate_ public_ key_ encryption_ key_ pair_ with_ ciphers - Checks whether the userβs public key encryption key pair needs regeneration.
- is_
user_ πkey_ valid - Validates the user key by attempting to decrypt a personal cipher. Returns
Ok(true)(should regenerate) if the user key is valid,Ok(false)otherwise. - is_
user_ πkey_ valid_ from_ api - Validates the user key by fetching ciphers from the API and attempting to decrypt a personal
one. Returns
Ok(true)(should regenerate) if the user key is valid,Ok(false)otherwise. - verify_
public_ πkey_ matches - Verifies that the public key derived from the decrypted private key matches the public key stored on the server.