Struct yubihsm::capability::Capability[]

pub struct Capability { /* fields omitted */ }

Object attributes specifying which operations are allowed to be performed

https://developers.yubico.com/YubiHSM2/Concepts/Capability.html

Methods

impl Capability

ASYMMETRIC_DECRYPT_ECDH: Capability = Capability{bits: 2048,}

asymmetric_decrypt_ecdh: perform ECDH operation

ASYMMETRIC_DECRYPT_OAEP: Capability = Capability{bits: 1024,}

asymmetric_decrypt_oaep: perform RSA-OAEP decryption

ASYMMETRIC_DECRYPT_PKCS: Capability = Capability{bits: 512,}

asymmetric_decrypt_pkcs: perform RSA-PKCS1v1.5 decryption

ASYMMETRIC_GEN: Capability = Capability{bits: 16,}

asymmetric_gen: generate asymmetric objects

ASYMMETRIC_SIGN_ECDSA: Capability = Capability{bits: 128,}

asymmetric_sign_ecdsa: compute ECDSA digital signature

ASYMMETRIC_SIGN_EDDSA: Capability = Capability{bits: 256,}

asymmetric_sign_eddsa: compute EdDSA (i.e. Ed25519) digital signature

ASYMMETRIC_SIGN_PKCS: Capability = Capability{bits: 32,}

asymmetric_sign_pkcs: compute RSA-PKCS1v1.5 digital signature

ASYMMETRIC_SIGN_PSS: Capability = Capability{bits: 64,}

asymmetric_sign_pss: compute RSA-PSS digital signature

ATTEST: Capability = Capability{bits: 17179869184,}

attest: create attestation (i.e. X.509 certificate) about an asymmetric object

AUDIT: Capability = Capability{bits: 16777216,}

audit: read the log store

DELETE_ASYMMETRIC: Capability = Capability{bits: 2199023255552,}

delete_asymmetric: delete asymmetric key objects

DELETE_AUTHKEY: Capability = Capability{bits: 1099511627776,}

delete_auth_key: delete AuthKey objects

DELETE_HMACKEY: Capability = Capability{bits: 8796093022208,}

delete_hmac_key: delete HMACKey objects

DELETE_OPAQUE: Capability = Capability{bits: 549755813888,}

delete_opaque: delete opaque objects

DELETE_OTP_AEAD_KEY: Capability = Capability{bits: 35184372088832,}

delete_otp_aead_key: delete OTPAEADKey objects

DELETE_TEMPLATE: Capability = Capability{bits: 17592186044416,}

delete_template: delete template objects

DELETE_WRAPKEY: Capability = Capability{bits: 4398046511104,}

delete_wrap_key: delete WrapKey objects

EXPORT_UNDER_WRAP: Capability = Capability{bits: 65536,}

export_under_wrap: mark an object as exportable under keywrap

EXPORT_WRAPPED: Capability = Capability{bits: 4096,}

export_wrapped: export objects under keywrap

GENERATE_OTP_AEAD_KEY: Capability = Capability{bits: 68719476736,}

generate_otp_aead_key: generate OTPAEADKey objects

GENERATE_WRAPKEY: Capability = Capability{bits: 32768,}

generate_wrapkey: generate wrapkey objects

GET_OPAQUE: Capability = Capability{bits: 1,}

get_opaque: read opaque objects

GET_OPTION: Capability = Capability{bits: 262144,}

get_option: read device-global options

GET_RANDOMNESS: Capability = Capability{bits: 524288,}

get_randomness: extract random bytes

GET_TEMPLATE: Capability = Capability{bits: 67108864,}

get_template: read template objects

HMACKEY_GENERATE: Capability = Capability{bits: 2097152,}

hmackey_generate: generate HMACKey objects

HMAC_DATA: Capability = Capability{bits: 4194304,}

hmac_data: compute HMAC for data

HMAC_VERIFY: Capability = Capability{bits: 8388608,}

hmac_verify: verify HMAC for data

IMPORT_WRAPPED: Capability = Capability{bits: 8192,}

import_wrapped: import keywrapped objects

OTP_AEAD_CREATE: Capability = Capability{bits: 1073741824,}

otp_aead_create: create an OTP AEAD

OTP_AEAD_RANDOM: Capability = Capability{bits: 2147483648,}

otp_aead_random: create an OTP AEAD from random data

OTP_AEAD_REWRAP_FROM: Capability = Capability{bits: 4294967296,}

otp_aead_rewrap_from: rewrap AEADs from one OTPAEADKey Object to another

OTP_AEAD_REWRAP_TO: Capability = Capability{bits: 8589934592,}

otp_aead_rewrap_to: rewrap AEADs to one OTPAEADKey Object from another

OTP_DECRYPT: Capability = Capability{bits: 536870912,}

otp_decrypt: decrypt OTP

PUT_ASYMMETRIC: Capability = Capability{bits: 8,}

put_asymmetric_key: write asymmetric objects

PUT_AUTHKEY: Capability = Capability{bits: 4,}

put_auth_key: write AuthKey objects

PUT_HMACKEY: Capability = Capability{bits: 1048576,}

put_hmac_key: write HMACKey objects

PUT_OPAQUE: Capability = Capability{bits: 2,}

put_opaque: Write Opaque Objects

PUT_OPTION: Capability = Capability{bits: 131072,}

put_option: write device-global options

PUT_OTP_AEAD_KEY: Capability = Capability{bits: 34359738368,}

put_otp_aead_key: write OTPAEADKey objects

PUT_TEMPLATE: Capability = Capability{bits: 134217728,}

put_template: write template objects

PUT_WRAPKEY: Capability = Capability{bits: 16384,}

put_wrapkey: write WrapKey objects

RESET: Capability = Capability{bits: 268435456,}

reset: factory reset the device

SSH_CERTIFY: Capability = Capability{bits: 33554432,}

ssh_certify: sign SSH certificates

UNWRAP_DATA: Capability = Capability{bits: 274877906944,}

unwrap_data: unwrap user-provided data

WRAP_DATA: Capability = Capability{bits: 137438953472,}

wrap_data: wrap user-provided data

CAP46: Capability = Capability{bits: 70368744177664,}

Unknown Capability (Bit 46)

CAP47: Capability = Capability{bits: 140737488355328,}

Unknown Capability (Bit 47)

CAP48: Capability = Capability{bits: 281474976710656,}

Unknown Capability (Bit 48)

CAP49: Capability = Capability{bits: 562949953421312,}

Unknown Capability (Bit 49)

CAP50: Capability = Capability{bits: 1125899906842624,}

Unknown Capability (Bit 50)

CAP51: Capability = Capability{bits: 2251799813685248,}

Unknown Capability (Bit 51)

CAP52: Capability = Capability{bits: 4503599627370496,}

Unknown Capability (Bit 52)

CAP53: Capability = Capability{bits: 9007199254740992,}

Unknown Capability (Bit 53)

CAP54: Capability = Capability{bits: 18014398509481984,}

Unknown Capability (Bit 54)

CAP55: Capability = Capability{bits: 36028797018963968,}

Unknown Capability (Bit 55)

CAP56: Capability = Capability{bits: 72057594037927936,}

Unknown Capability (Bit 56)

CAP57: Capability = Capability{bits: 144115188075855872,}

Unknown Capability (Bit 57)

CAP58: Capability = Capability{bits: 288230376151711744,}

Unknown Capability (Bit 58)

CAP59: Capability = Capability{bits: 576460752303423488,}

Unknown Capability (Bit 59)

CAP60: Capability = Capability{bits: 1152921504606846976,}

Unknown Capability (Bit 60)

CAP61: Capability = Capability{bits: 2305843009213693952,}

Unknown Capability (Bit 61)

CAP62: Capability = Capability{bits: 4611686018427387904,}

Unknown Capability (Bit 62)

CAP63: Capability = Capability{bits: 9223372036854775808,}

Unknown Capability (Bit 63)

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for Capability

impl PartialEq for Capability

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Capability

impl Clone for Capability

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for Capability

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Capability

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Capability

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Capability

Formats the value using the given formatter. Read more

impl Binary for Capability

Formats the value using the given formatter.

impl Octal for Capability

Formats the value using the given formatter.

impl LowerHex for Capability

Formats the value using the given formatter.

impl UpperHex for Capability

Formats the value using the given formatter.

impl BitOr for Capability

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for Capability

Adds the set of flags.

impl BitXor for Capability

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for Capability

Toggles the set of flags.

impl BitAnd for Capability

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for Capability

Disables all flags disabled in the set.

impl Sub for Capability

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for Capability

Disables all flags enabled in the set.

impl Not for Capability

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<Capability> for Capability

Extends a collection with the contents of an iterator. Read more

impl FromIterator<Capability> for Capability

Creates a value from an iterator. Read more

impl Default for Capability
[src]

Returns the "default value" for a type. Read more

impl Serialize for Capability
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Capability

impl Sync for Capability