[−][src]Struct teaclave_crypto::AesGcm256Key
Fields
key: [u8; 32]
iv: [u8; 12]
Methods
impl AesGcm256Key
[src]
pub const SCHEMA: &'static str
[src]
pub fn new(in_key: &[u8], in_iv: &[u8]) -> Result<Self>
[src]
pub fn from_hex(in_key: impl AsRef<str>, in_iv: impl AsRef<str>) -> Result<Self>
[src]
pub fn random() -> Self
[src]
pub fn decrypt(&self, in_out: &mut Vec<u8>) -> Result<[u8; 16]>
[src]
pub fn encrypt(&self, in_out: &mut Vec<u8>) -> Result<[u8; 16]>
[src]
Trait Implementations
impl Clone for AesGcm256Key
[src]
fn clone(&self) -> AesGcm256Key
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AesGcm256Key
[src]
impl Debug for AesGcm256Key
[src]
impl Default for AesGcm256Key
[src]
impl<'de> Deserialize<'de> for AesGcm256Key
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<AesGcm256Key> for AesGcm256Key
[src]
fn eq(&self, other: &AesGcm256Key) -> bool
[src]
fn ne(&self, other: &AesGcm256Key) -> bool
[src]
impl Serialize for AesGcm256Key
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for AesGcm256Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for AesGcm256Key
impl Send for AesGcm256Key
impl Sync for AesGcm256Key
impl Unpin for AesGcm256Key
impl UnwindSafe for AesGcm256Key
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,