Struct yubihsm::capabilities::Capabilities []

pub struct Capabilities { /* fields omitted */ }

Object attributes specifying which operations are allowed to be performed

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

Methods

impl Capabilities

ASYMMETRIC_DECRYPT_ECDH: Capabilities = Capabilities{bits: 2048,}

asymmetric_decrypt_ecdh: perform ECDH operation

ASYMMETRIC_DECRYPT_OAEP: Capabilities = Capabilities{bits: 1024,}

asymmetric_decrypt_oaep: perform RSA-OAEP decryption

ASYMMETRIC_DECRYPT_PKCS: Capabilities = Capabilities{bits: 512,}

asymmetric_decrypt_pkcs: perform RSA-PKCS1v1.5 decryption

ASYMMETRIC_GEN: Capabilities = Capabilities{bits: 16,}

asymmetric_gen: generate asymmetric objects

ASYMMETRIC_SIGN_ECDSA: Capabilities = Capabilities{bits: 128,}

asymmetric_sign_ecdsa: compute ECDSA digital signature

ASYMMETRIC_SIGN_EDDSA: Capabilities = Capabilities{bits: 256,}

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

ASYMMETRIC_SIGN_PKCS: Capabilities = Capabilities{bits: 32,}

asymmetric_sign_pkcs: compute RSA-PKCS1v1.5 digital signature

ASYMMETRIC_SIGN_PSS: Capabilities = Capabilities{bits: 64,}

asymmetric_sign_pss: compute RSA-PSS digital signature

ATTEST: Capabilities = Capabilities{bits: 17179869184,}

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

AUDIT: Capabilities = Capabilities{bits: 16777216,}

audit: read the log store

DELETE_ASYMMETRIC: Capabilities = Capabilities{bits: 2199023255552,}

delete_asymmetric: delete asymmetric key objects

DELETE_AUTHKEY: Capabilities = Capabilities{bits: 1099511627776,}

delete_authkey: delete AuthKey objects

DELETE_HMACKEY: Capabilities = Capabilities{bits: 8796093022208,}

delete_hmac_key: delete HMACKey objects

DELETE_OPAQUE: Capabilities = Capabilities{bits: 549755813888,}

delete_opaque: delete opaque objects

DELETE_OTP_AEAD_KEY: Capabilities = Capabilities{bits: 35184372088832,}

delete_otp_aead_key: delete OTPAEADKey objects

DELETE_TEMPLATE: Capabilities = Capabilities{bits: 17592186044416,}

delete_template: delete template objects

DELETE_WRAPKEY: Capabilities = Capabilities{bits: 4398046511104,}

delete_wrap_key: delete WrapKey objects

EXPORT_UNDER_WRAP: Capabilities = Capabilities{bits: 65536,}

export_under_wrap: mark an object as exportable under keywrap

EXPORT_WRAPPED: Capabilities = Capabilities{bits: 4096,}

export_wrapped: export objects under keywrap

GENERATE_OTP_AEAD_KEY: Capabilities = Capabilities{bits: 68719476736,}

generate_otp_aead_key: generate OTPAEADKey objects

GENERATE_WRAPKEY: Capabilities = Capabilities{bits: 32768,}

generate_wrapkey: generate wrapkey objects

GET_OPAQUE: Capabilities = Capabilities{bits: 1,}

get_opaque: read opaque objects

GET_OPTION: Capabilities = Capabilities{bits: 262144,}

get_option: read device-global options

GET_RANDOMNESS: Capabilities = Capabilities{bits: 524288,}

get_randomness: extract random bytes

GET_TEMPLATE: Capabilities = Capabilities{bits: 67108864,}

get_template: read template objects

HMACKEY_GENERATE: Capabilities = Capabilities{bits: 2097152,}

hmackey_generate: generate HMACKey objects

HMAC_DATA: Capabilities = Capabilities{bits: 4194304,}

hmac_data: compute HMAC for data

HMAC_VERIFY: Capabilities = Capabilities{bits: 8388608,}

hmac_verify: verify HMAC for data

IMPORT_WRAPPED: Capabilities = Capabilities{bits: 8192,}

import_wrapped: import keywrapped objects

OTP_AEAD_CREATE: Capabilities = Capabilities{bits: 1073741824,}

otp_aead_create: create an OTP AEAD

OTP_AEAD_RANDOM: Capabilities = Capabilities{bits: 2147483648,}

otp_aead_random: create an OTP AEAD from random data

OTP_AEAD_REWRAP_FROM: Capabilities = Capabilities{bits: 4294967296,}

otp_aead_rewrap_from: rewrap AEADs from one OTPAEADKey Object to another

OTP_AEAD_REWRAP_TO: Capabilities = Capabilities{bits: 8589934592,}

otp_aead_rewrap_to: rewrap AEADs to one OTPAEADKey Object from another

OTP_DECRYPT: Capabilities = Capabilities{bits: 536870912,}

otp_decrypt: decrypt OTP

PUT_ASYMMETRIC: Capabilities = Capabilities{bits: 8,}

put_asymmetric: write asymmetric objects

PUT_AUTHKEY: Capabilities = Capabilities{bits: 4,}

put_authkey: write AuthKey objects

PUT_HMACKEY: Capabilities = Capabilities{bits: 1048576,}

put_hmackey: write HMACKey objects

PUT_OPAQUE: Capabilities = Capabilities{bits: 2,}

put_opaque: Write Opaque Objects

PUT_OPTION: Capabilities = Capabilities{bits: 131072,}

put_option: write device-global options

PUT_OTP_AEAD_KEY: Capabilities = Capabilities{bits: 34359738368,}

put_otp_aead_key: write OTPAEADKey objects

PUT_TEMPLATE: Capabilities = Capabilities{bits: 134217728,}

put_template: write template objects

PUT_WRAPKEY: Capabilities = Capabilities{bits: 16384,}

put_wrapkey: write WrapKey objects

RESET: Capabilities = Capabilities{bits: 268435456,}

reset: factory reset the device

SSH_CERTIFY: Capabilities = Capabilities{bits: 33554432,}

ssh_certify: sign SSH certificates

UNWRAP_DATA: Capabilities = Capabilities{bits: 274877906944,}

unwrap_data: unwrap user-provided data

WRAP_DATA: Capabilities = Capabilities{bits: 137438953472,}

wrap_data: wrap user-provided data

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 Capabilities

impl PartialEq for Capabilities

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

This method tests for !=.

impl Eq for Capabilities

impl Clone for Capabilities

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd for Capabilities

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 Capabilities

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Capabilities

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

1.3.0
[src]

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

impl Debug for Capabilities

Formats the value using the given formatter. Read more

impl Binary for Capabilities

Formats the value using the given formatter.

impl Octal for Capabilities

Formats the value using the given formatter.

impl LowerHex for Capabilities

Formats the value using the given formatter.

impl UpperHex for Capabilities

Formats the value using the given formatter.

impl BitOr for Capabilities

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for Capabilities

Adds the set of flags.

impl BitXor for Capabilities

The resulting type after applying the ^ operator.

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

impl BitXorAssign for Capabilities

Toggles the set of flags.

impl BitAnd for Capabilities

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for Capabilities

Disables all flags disabled in the set.

impl Sub for Capabilities

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for Capabilities

Disables all flags enabled in the set.

impl Not for Capabilities

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<Capabilities> for Capabilities

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

impl FromIterator<Capabilities> for Capabilities

Creates a value from an iterator. Read more

impl Default for Capabilities
[src]

[src]

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

impl Serialize for Capabilities
[src]

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Capabilities

impl Sync for Capabilities