Lines Matching refs:algorithm
80 pub algorithm: SuperEncryptionAlgorithm, field
86 SuperKeyType { alias: "USER_SUPER_KEY", algorithm: SuperEncryptionAlgorithm::Aes256Gcm };
92 algorithm: SuperEncryptionAlgorithm::Aes256Gcm,
99 algorithm: SuperEncryptionAlgorithm::EcdhP521,
145 algorithm: SuperEncryptionAlgorithm, field
158 if self.algorithm == SuperEncryptionAlgorithm::Aes256Gcm { in decrypt()
167 if self.algorithm == SuperEncryptionAlgorithm::Aes256Gcm { in encrypt()
179 algorithm: SuperEncryptionAlgorithm, field
189 Ok(LockedKey { algorithm: to_encrypt.algorithm, id: to_encrypt.id, nonce, ciphertext }) in new()
225 Ok(Arc::new(SuperKey { algorithm: self.algorithm, key, id: self.id, reencrypt_with })) in decrypt()
386 algorithm: SuperEncryptionAlgorithm::Aes256Gcm, in lookup_key()
447 self.populate_cache_from_super_key_blob(user, USER_SUPER_KEY.algorithm, entry, pw) in unlock_user_key()
478 match key.algorithm { in unwrap_key_with_key()
558 .populate_cache_from_super_key_blob(user_id, alias.algorithm, entry, pw) in check_and_unlock_super_key()
606 USER_SUPER_KEY.algorithm, in check_and_initialize_super_key()
621 algorithm: SuperEncryptionAlgorithm, in populate_cache_from_super_key_blob()
625 let super_key = Self::extract_super_key_from_key_entry(algorithm, entry, pw, None) in populate_cache_from_super_key_blob()
635 algorithm: SuperEncryptionAlgorithm, in extract_super_key_from_key_entry()
671 algorithm, in extract_super_key_from_key_entry()
735 if super_key.algorithm != SuperEncryptionAlgorithm::Aes256Gcm { in encrypt_with_aes_super_key()
852 key_type.algorithm, in get_or_create_super_key()
858 let (super_key, public_key) = match key_type.algorithm { in get_or_create_super_key()
896 algorithm: key_type.algorithm, in get_or_create_super_key()