pub struct Context {
inner: ContextInner,
aad_len: BitLength<u64>,
in_out_len: BitLength<u64>,
cpu_features: Features,
}
Fields§
§inner: ContextInner
§aad_len: BitLength<u64>
§in_out_len: BitLength<u64>
§cpu_features: Features
Implementations§
source§impl Context
impl Context
pub(crate) fn new( key: &Key, aad: Aad<&[u8]>, in_out_len: usize, cpu_features: Features, ) -> Result<Self, Unspecified>
sourcepub(super) fn inner(&mut self) -> (&HTable, &mut Xi)
pub(super) fn inner(&mut self) -> (&HTable, &mut Xi)
Access to inner
for the integrated AES-GCM implementations only.
pub fn update_blocks(&mut self, input: &[u8])
pub fn update_block(&mut self, a: Block)
pub(super) fn pre_finish<F>(self, f: F) -> Tag
pub(super) fn is_avx(&self) -> bool
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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