Skip to main content

CryptographicParameters

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

Source§

impl CryptographicParameters

Source

pub const TAG: Tag

Source

pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>

Source

pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>

Source

pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>

Source

pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>

Source

pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult

Source

pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult

Trait Implementations§

Source§

impl Clone for CryptographicParameters

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for CryptographicParameters

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() -> Self

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

impl Eq for CryptographicParameters

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: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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 = !

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

fn try_from(value: U) -> Result<T, !>

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more