Add export_key method to Aes256Encryption

This commit is contained in:
Sosthene 2024-06-27 17:16:26 +02:00
parent 3d30eb8ce3
commit b648ed9ada

View File

@ -254,6 +254,10 @@ impl Aes256Encryption {
})
}
pub fn export_key(&self) -> [u8;32] {
self.aes_key
}
pub fn encrypt_with_aes_key(&self) -> Result<CipherText> {
match self.purpose {
Purpose::Login => self.encrypt_login(),