[][src]Struct sdkms::api_model::EncryptRequest

pub struct EncryptRequest {
    pub key: Option<SobjectDescriptor>,
    pub alg: Algorithm,
    pub plain: Blob,
    pub mode: Option<CryptMode>,
    pub iv: Option<Blob>,
    pub ad: Option<Blob>,
    pub tag_len: Option<usize>,
}

A request to encrypt data using a symmetric or asymmetric key.

Fields

key: Option<SobjectDescriptor>alg: Algorithmplain: Blobmode: Option<CryptMode>

Mode is required for symmetric algorithms.

iv: Option<Blob>

Initialization vector is optional and will be randomly generated if not specified.

ad: Option<Blob>

Authenticated data is only applicable when using GCM mode.

tag_len: Option<usize>

Tag length is only applicable when using GCM mode.

Trait Implementations

impl Clone for EncryptRequest[src]

impl Debug for EncryptRequest[src]

impl<'de> Deserialize<'de> for EncryptRequest[src]

impl Eq for EncryptRequest[src]

impl PartialEq<EncryptRequest> for EncryptRequest[src]

impl Serialize for EncryptRequest[src]

impl StructuralEq for EncryptRequest[src]

impl StructuralPartialEq for EncryptRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any