Add export_key method to Aes256Encryption
This commit is contained in:
parent
3d30eb8ce3
commit
b648ed9ada
@ -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> {
|
pub fn encrypt_with_aes_key(&self) -> Result<CipherText> {
|
||||||
match self.purpose {
|
match self.purpose {
|
||||||
Purpose::Login => self.encrypt_login(),
|
Purpose::Login => self.encrypt_login(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user