hsmtool::util::attribute

Enum AttributeType

Source
#[repr(u64)]
pub enum AttributeType {
Show 106 variants Class = 0, Token = 1, Private = 2, Label = 3, Application = 16, Value = 17, ObjectId = 18, CertificateType = 128, Issuer = 129, SerialNumber = 130, AcIssuer = 131, Owner = 132, AttrTypes = 133, Trusted = 134, CertificateCategory = 135, JavaMidpSecurityDomain = 136, Url = 137, HashOfSubjectPublicKey = 138, HashOfIssuerPublicKey = 139, NameHashAlgorithm = 140, CheckValue = 144, KeyType = 256, Subject = 257, Id = 258, Sensitive = 259, Encrypt = 260, Decrypt = 261, Wrap = 262, Unwrap = 263, Sign = 264, SignRecover = 265, Verify = 266, VerifyRecover = 267, Derive = 268, StartDate = 272, EndDate = 273, Modulus = 288, ModulusBits = 289, PublicExponent = 290, PrivateExponent = 291, Prime1 = 292, Prime2 = 293, Exponent1 = 294, Exponent2 = 295, Coefficient = 296, PublicKeyInfo = 297, Prime = 304, Subprime = 305, Base = 306, PrimeBits = 307, SubPrimeBits = 308, ValueBits = 352, ValueLen = 353, Extractable = 354, Local = 355, NeverExtractable = 356, AlwaysSensitive = 357, KeyGenMechanism = 358, Modifiable = 368, Copyable = 369, Destroyable = 370, EcParams = 384, EcPoint = 385, SecondaryAuth = 512, AuthPinFlags = 513, AlwaysAuthenticate = 514, WrapWithTrusted = 528, OtpFormat = 544, OtpLength = 545, OtpTimeInterval = 546, OtpUserFriendlyMode = 547, OtpChallengeRequirement = 548, OtpTimeRequirement = 549, OtpCounterRequirement = 550, OtpPinRequirement = 551, OtpUserIdentifier = 554, OtpServiceIdentifier = 555, OtpServiceLogo = 556, OtpServiceLogoType = 557, OtpCounter = 558, OtpTime = 559, Gostr3410Params = 592, Gostr3411Params = 593, Gost28147Params = 594, HwFeatureType = 768, ResetOnInit = 769, HasReset = 770, PixelX = 1_024, PixelY = 1_025, Resolution = 1_026, CharRows = 1_027, CharColumns = 1_028, Color = 1_029, BitsPerPixel = 1_030, CharSets = 1_152, EncodingMethods = 1_153, MimeTypes = 1_154, MechanismType = 1_280, RequiredCmsAttributes = 1_281, DefaultCmsAttributes = 1_282, SupportedCmsAttributes = 1_283, WrapTemplate = 1_073_742_353, UnwrapTemplate = 1_073_742_354, DeriveTemplate = 1_073_742_355, AllowedMechanisms = 1_073_743_360, UnknownAttributeType(u64),
}

Variants§

§

Class = 0

§

Token = 1

§

Private = 2

§

Label = 3

§

Application = 16

§

Value = 17

§

ObjectId = 18

§

CertificateType = 128

§

Issuer = 129

§

SerialNumber = 130

§

AcIssuer = 131

§

Owner = 132

§

AttrTypes = 133

§

Trusted = 134

§

CertificateCategory = 135

§

JavaMidpSecurityDomain = 136

§

Url = 137

§

HashOfSubjectPublicKey = 138

§

HashOfIssuerPublicKey = 139

§

NameHashAlgorithm = 140

§

CheckValue = 144

§

KeyType = 256

§

Subject = 257

§

Id = 258

§

Sensitive = 259

§

Encrypt = 260

§

Decrypt = 261

§

Wrap = 262

§

Unwrap = 263

§

Sign = 264

§

SignRecover = 265

§

Verify = 266

§

VerifyRecover = 267

§

Derive = 268

§

StartDate = 272

§

EndDate = 273

§

Modulus = 288

§

ModulusBits = 289

§

PublicExponent = 290

§

PrivateExponent = 291

§

Prime1 = 292

§

Prime2 = 293

§

Exponent1 = 294

§

Exponent2 = 295

§

Coefficient = 296

§

PublicKeyInfo = 297

§

Prime = 304

§

Subprime = 305

§

Base = 306

§

PrimeBits = 307

§

SubPrimeBits = 308

§

ValueBits = 352

§

ValueLen = 353

§

Extractable = 354

§

Local = 355

§

NeverExtractable = 356

§

AlwaysSensitive = 357

§

KeyGenMechanism = 358

§

Modifiable = 368

§

Copyable = 369

§

Destroyable = 370

§

EcParams = 384

§

EcPoint = 385

§

SecondaryAuth = 512

§

AuthPinFlags = 513

§

AlwaysAuthenticate = 514

§

WrapWithTrusted = 528

§

OtpFormat = 544

§

OtpLength = 545

§

OtpTimeInterval = 546

§

OtpUserFriendlyMode = 547

§

OtpChallengeRequirement = 548

§

OtpTimeRequirement = 549

§

OtpCounterRequirement = 550

§

OtpPinRequirement = 551

§

OtpUserIdentifier = 554

§

OtpServiceIdentifier = 555

§

OtpServiceLogoType = 557

§

OtpCounter = 558

§

OtpTime = 559

§

Gostr3410Params = 592

§

Gostr3411Params = 593

§

Gost28147Params = 594

§

HwFeatureType = 768

§

ResetOnInit = 769

§

HasReset = 770

§

PixelX = 1_024

§

PixelY = 1_025

§

Resolution = 1_026

§

CharRows = 1_027

§

CharColumns = 1_028

§

Color = 1_029

§

BitsPerPixel = 1_030

§

CharSets = 1_152

§

EncodingMethods = 1_153

§

MimeTypes = 1_154

§

MechanismType = 1_280

§

RequiredCmsAttributes = 1_281

§

DefaultCmsAttributes = 1_282

§

SupportedCmsAttributes = 1_283

§

WrapTemplate = 1_073_742_353

§

UnwrapTemplate = 1_073_742_354

§

DeriveTemplate = 1_073_742_355

§

AllowedMechanisms = 1_073_743_360

§

UnknownAttributeType(u64)

Trait Implementations§

Source§

impl Clone for AttributeType

Source§

fn clone(&self) -> AttributeType

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 AttributeType

Source§

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

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

impl<'de> Deserialize<'de> for AttributeType

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 Display for AttributeType

Source§

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

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

impl From<AttributeType> for AttributeType

Source§

fn from(val: AttributeType) -> Self

Converts to this type from the input type.
Source§

impl From<AttributeType> for u64

Source§

fn from(enum_value: AttributeType) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for AttributeType

Source§

fn from(number: u64) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for AttributeType

Source§

type Primitive = u64

Source§

fn from_primitive(number: Self::Primitive) -> Self

Source§

impl FromStr for AttributeType

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<AttributeType, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for AttributeType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoEnumIterator for AttributeType

Source§

type Iterator = AttributeTypeIter

Source§

fn iter() -> AttributeTypeIter

Source§

impl PartialEq for AttributeType

Source§

fn eq(&self, other: &AttributeType) -> 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 AttributeType

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 TryFrom<&str> for AttributeType

Source§

type Error = ParseError

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

fn try_from(s: &str) -> Result<AttributeType, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl TryFrom<AttributeType> for AttributeType

Source§

type Error = Error

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

fn try_from(val: AttributeType) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for AttributeType

Source§

impl Eq for AttributeType

Source§

impl StructuralPartialEq for AttributeType

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Annotate for T
where T: Serialize + ?Sized,

§

default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>

§

default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>

§

default fn as_annotate(&self) -> Option<&dyn Annotate>

§

default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>

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, dst: *mut u8)

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

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