Struct sgx_crypto::aes::gcm::AesGcm
source · pub struct AesGcm<A: AsRef<[u8]>> { /* private fields */ }Implementations§
source§impl<A: AsRef<[u8]>> AesGcm<A>
impl<A: AsRef<[u8]>> AesGcm<A>
pub fn new(key: &Key128bit, iv: Nonce, aad: Aad<A>) -> SgxResult<AesGcm<A>>
pub fn encrypt(&mut self, src: &[u8], dst: &mut [u8]) -> SgxResult<Mac128bit>
pub fn encrypt_in_place(&mut self, in_out: &mut [u8]) -> SgxResult<Mac128bit>
pub fn decrypt( &mut self, src: &[u8], dst: &mut [u8], mac: &Mac128bit ) -> SgxResult
pub fn decrypt_in_place( &mut self, in_out: &mut [u8], mac: &Mac128bit ) -> SgxResult
pub fn mac(&mut self) -> SgxResult<Mac128bit>
pub fn verify_mac(&mut self, mac: &Mac128bit) -> SgxResult
pub fn enc_update(&mut self, src: &[u8], dst: &mut [u8]) -> SgxResult
pub fn enc_update_in_place(&mut self, in_out: &mut [u8]) -> SgxResult
pub unsafe fn dec_update(&mut self, src: &[u8], dst: &mut [u8]) -> SgxResult
pub unsafe fn dec_update_in_place(&mut self, in_out: &mut [u8]) -> SgxResult
pub fn enc_get_mac(&mut self) -> SgxResult<Mac128bit>
pub fn dec_verify_mac(&mut self, mac: &Mac128bit) -> SgxResult
Trait Implementations§
Auto Trait Implementations§
impl<A> RefUnwindSafe for AesGcm<A>where A: RefUnwindSafe,
impl<A> !Send for AesGcm<A>
impl<A> !Sync for AesGcm<A>
impl<A> Unpin for AesGcm<A>where A: Unpin,
impl<A> UnwindSafe for AesGcm<A>where A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more