Struct CryptographicParameters

Source
pub struct CryptographicParameters {
Show 13 fields pub block_cipher_mode: Option<BlockCipherMode>, pub padding_method: Option<PaddingMethod>, pub hashing_algorithm: Option<HashingAlgorithm>, pub key_role_type: Option<KeyRoleType>, pub digital_signature_algorithm: Option<DigitalSignatureAlgorithm>, pub cryptographic_algorithm: Option<CryptographicAlgorithm>, pub random_iv: Option<RandomIV>, pub iv_length: Option<IVLength>, pub tag_length: Option<TagLength>, pub fixed_field_length: Option<FixedFieldLength>, pub invocation_field_length: Option<InvocationFieldLength>, pub counter_length: Option<CounterLength>, pub initial_counter_value: Option<InitialCounterValue>,
}
Expand description

See KMIP 1.0 section 3.6 Cryptographic Parameters.

Fields§

§block_cipher_mode: Option<BlockCipherMode>§padding_method: Option<PaddingMethod>§hashing_algorithm: Option<HashingAlgorithm>§key_role_type: Option<KeyRoleType>§digital_signature_algorithm: Option<DigitalSignatureAlgorithm>§cryptographic_algorithm: Option<CryptographicAlgorithm>§random_iv: Option<RandomIV>§iv_length: Option<IVLength>§tag_length: Option<TagLength>§fixed_field_length: Option<FixedFieldLength>§invocation_field_length: Option<InvocationFieldLength>§counter_length: Option<CounterLength>§initial_counter_value: Option<InitialCounterValue>

Implementations§

Source§

impl CryptographicParameters

Source

pub fn with_block_cipher_mode(self, value: BlockCipherMode) -> Self

Source

pub fn with_padding_method(self, value: PaddingMethod) -> Self

Source

pub fn with_hashing_algorithm(self, value: HashingAlgorithm) -> Self

Source

pub fn with_key_role_type(self, value: KeyRoleType) -> Self

Source

pub fn with_digital_signature_algorithm( self, value: DigitalSignatureAlgorithm, ) -> Self

Source

pub fn with_cryptographic_algorithm(self, value: CryptographicAlgorithm) -> Self

Source

pub fn with_random_iv(self, value: RandomIV) -> Self

Source

pub fn with_iv_length(self, value: IVLength) -> Self

Source

pub fn with_tag_length(self, value: TagLength) -> Self

Source

pub fn with_fixed_field_length(self, value: FixedFieldLength) -> Self

Source

pub fn with_invocation_field_length(self, value: InvocationFieldLength) -> Self

Source

pub fn with_counter_length(self, value: CounterLength) -> Self

Source

pub fn with_initial_counter_value(self, value: InitialCounterValue) -> Self

Trait Implementations§

Source§

impl Clone for CryptographicParameters

Source§

fn clone(&self) -> CryptographicParameters

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CryptographicParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CryptographicParameters

Source§

fn default() -> CryptographicParameters

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CryptographicParameters

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<CryptographicParameters> for AttributeValue

Source§

fn from(params: CryptographicParameters) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CryptographicParameters

Source§

fn eq(&self, other: &CryptographicParameters) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CryptographicParameters

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CryptographicParameters

Source§

impl Eq for CryptographicParameters

Source§

impl StructuralPartialEq for CryptographicParameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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