Lines Matching refs:algorithm
82 pub algorithm: SuperEncryptionAlgorithm, field
88 SuperKeyType { alias: "USER_SUPER_KEY", algorithm: SuperEncryptionAlgorithm::Aes256Gcm };
94 algorithm: SuperEncryptionAlgorithm::Aes256Gcm,
101 algorithm: SuperEncryptionAlgorithm::EcdhP521,
149 algorithm: SuperEncryptionAlgorithm, field
164 if self.algorithm == SuperEncryptionAlgorithm::Aes256Gcm { in aes_gcm_decrypt()
176 algorithm: SuperEncryptionAlgorithm, field
186 Ok(LockedKey { algorithm: to_encrypt.algorithm, id: to_encrypt.id, nonce, ciphertext }) in new()
222 Ok(Arc::new(SuperKey { algorithm: self.algorithm, key, id: self.id, reencrypt_with })) in decrypt()
372 algorithm: SuperEncryptionAlgorithm::Aes256Gcm, in lookup_key()
426 self.populate_cache_from_super_key_blob(user, USER_SUPER_KEY.algorithm, entry, pw) in unlock_user_key()
457 match key.algorithm { in unwrap_key_with_key()
534 .populate_cache_from_super_key_blob(user_id, alias.algorithm, entry, pw) in check_and_unlock_super_key()
583 USER_SUPER_KEY.algorithm, in check_and_initialize_super_key()
598 algorithm: SuperEncryptionAlgorithm, in populate_cache_from_super_key_blob()
602 let super_key = Self::extract_super_key_from_key_entry(algorithm, entry, pw, None) in populate_cache_from_super_key_blob()
612 algorithm: SuperEncryptionAlgorithm, in extract_super_key_from_key_entry()
648 algorithm, in extract_super_key_from_key_entry()
711 if super_key.algorithm != SuperEncryptionAlgorithm::Aes256Gcm { in encrypt_with_aes_super_key()
827 key_type.algorithm, in get_or_create_super_key()
833 let (super_key, public_key) = match key_type.algorithm { in get_or_create_super_key()
871 algorithm: key_type.algorithm, in get_or_create_super_key()