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
impl CryptographicParameters
pub fn with_block_cipher_mode(self, value: BlockCipherMode) -> Self
pub fn with_padding_method(self, value: PaddingMethod) -> Self
pub fn with_hashing_algorithm(self, value: HashingAlgorithm) -> Self
pub fn with_key_role_type(self, value: KeyRoleType) -> Self
pub fn with_digital_signature_algorithm( self, value: DigitalSignatureAlgorithm, ) -> Self
pub fn with_cryptographic_algorithm(self, value: CryptographicAlgorithm) -> Self
pub fn with_random_iv(self, value: RandomIV) -> Self
pub fn with_iv_length(self, value: IVLength) -> Self
pub fn with_tag_length(self, value: TagLength) -> Self
pub fn with_fixed_field_length(self, value: FixedFieldLength) -> Self
pub fn with_invocation_field_length(self, value: InvocationFieldLength) -> Self
pub fn with_counter_length(self, value: CounterLength) -> Self
pub fn with_initial_counter_value(self, value: InitialCounterValue) -> Self
Trait Implementations§
Source§impl Clone for CryptographicParameters
impl Clone for CryptographicParameters
Source§fn clone(&self) -> CryptographicParameters
fn clone(&self) -> CryptographicParameters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CryptographicParameters
impl Debug for CryptographicParameters
Source§impl Default for CryptographicParameters
impl Default for CryptographicParameters
Source§fn default() -> CryptographicParameters
fn default() -> CryptographicParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CryptographicParameters
impl<'de> Deserialize<'de> for CryptographicParameters
Source§fn 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
Source§impl From<CryptographicParameters> for AttributeValue
impl From<CryptographicParameters> for AttributeValue
Source§fn from(params: CryptographicParameters) -> Self
fn from(params: CryptographicParameters) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CryptographicParameters
impl PartialEq for CryptographicParameters
Source§impl Serialize for CryptographicParameters
impl Serialize for CryptographicParameters
impl Copy for CryptographicParameters
impl Eq for CryptographicParameters
impl StructuralPartialEq for CryptographicParameters
Auto Trait Implementations§
impl Freeze for CryptographicParameters
impl RefUnwindSafe for CryptographicParameters
impl Send for CryptographicParameters
impl Sync for CryptographicParameters
impl Unpin for CryptographicParameters
impl UnwindSafe for CryptographicParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more