Struct teaclave_crypto::TeaclaveFile128Key
source · [−]Fields
key: [u8; 16]
Implementations
sourceimpl TeaclaveFile128Key
impl TeaclaveFile128Key
pub const SCHEMA: &'static str = "teaclave-file-128"
pub fn random() -> Self
pub fn new(in_key: &[u8]) -> Result<Self>
pub fn decrypt<P: AsRef<Path>>(
&self,
path: P,
output: &mut impl Write
) -> Result<[u8; 16]>
pub fn encrypt<P: AsRef<Path>>(
&self,
path: P,
content: impl Read
) -> Result<[u8; 16]>
Trait Implementations
sourceimpl Clone for TeaclaveFile128Key
impl Clone for TeaclaveFile128Key
sourcefn clone(&self) -> TeaclaveFile128Key
fn clone(&self) -> TeaclaveFile128Key
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TeaclaveFile128Key
impl Debug for TeaclaveFile128Key
sourceimpl Default for TeaclaveFile128Key
impl Default for TeaclaveFile128Key
sourceimpl<'de> Deserialize<'de> for TeaclaveFile128Key
impl<'de> Deserialize<'de> for TeaclaveFile128Key
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<TeaclaveFile128Key> for TeaclaveFile128Key
impl PartialEq<TeaclaveFile128Key> for TeaclaveFile128Key
sourcefn eq(&self, other: &TeaclaveFile128Key) -> bool
fn eq(&self, other: &TeaclaveFile128Key) -> bool
sourceimpl Serialize for TeaclaveFile128Key
impl Serialize for TeaclaveFile128Key
impl Copy for TeaclaveFile128Key
impl StructuralPartialEq for TeaclaveFile128Key
Auto Trait Implementations
impl RefUnwindSafe for TeaclaveFile128Key
impl Send for TeaclaveFile128Key
impl Sync for TeaclaveFile128Key
impl Unpin for TeaclaveFile128Key
impl UnwindSafe for TeaclaveFile128Key
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more