pub struct PublicRsaParametersBuilder { /* private fields */ }
Expand description

Builder for TPMS_RSA_PARMS values.

Implementations

Creates a PublicRsaParametersBuilder that is setup to build a restructed decryption key.

Creates a PublicRsaParametersBuilder that is setup to build an unrestricted signing key.

Adds a flag that indicates if the key is going to be used for signing to the PublicRsaParametersBuilder.

Arguments
  • set - true inidcates that the key is going to be used for signing operations. false indicates that the key is not going to be used for signing operations.

Adds a flag that indicates if the key is going to be used for decryption to the PublicRsaParametersBuilder.

Arguments
  • set - true indicates that the key is going to be used for decryption operations. false indicates that the key is not going to be used for decryption operations.

Adds a flag that inidcates if the key is going to be restrictied to the PublicRsaParametersBuilder.

Arguments
  • set - true indicates that it is going to be a restricted key. false indicates that it is going to be a non restricted key.

Build an object given the previously provided parameters.

The only mandatory parameter is the asymmetric scheme.

Errors
  • if no asymmetric scheme is set, ParamsMissing wrapper error is returned.
  • if the for_signing, for_decryption and restricted parameters are inconsistent with the rest of the parameters, InconsistentParams wrapper error is returned

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Drops the content pointed by this pointer and frees it. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.