Struct tss_esapi::structures::PublicEccParametersBuilder
source · [−]pub struct PublicEccParametersBuilder { /* private fields */ }Expand description
Builder for PublicEccParameters.
Implementations
sourceimpl PublicEccParametersBuilder
impl PublicEccParametersBuilder
pub const fn new() -> Self
sourcepub const fn new_restricted_decryption_key(
symmetric: SymmetricDefinitionObject,
curve: EccCurve
) -> Self
pub const fn new_restricted_decryption_key(
symmetric: SymmetricDefinitionObject,
curve: EccCurve
) -> Self
Create parameters for a restricted decryption key (i.e. a storage key)
sourcepub const fn new_unrestricted_signing_key(
scheme: EccScheme,
curve: EccCurve
) -> Self
pub const fn new_unrestricted_signing_key(
scheme: EccScheme,
curve: EccCurve
) -> Self
Create parameters for an unrestricted signing key
sourcepub const fn with_symmetric(self, symmetric: SymmetricDefinitionObject) -> Self
pub const fn with_symmetric(self, symmetric: SymmetricDefinitionObject) -> Self
Adds a SymmetricDefinitionObject to the PublicEccParametersBuilder.
sourcepub const fn with_ecc_scheme(self, ecc_scheme: EccScheme) -> Self
pub const fn with_ecc_scheme(self, ecc_scheme: EccScheme) -> Self
Adds a EccScheme to the PublicEccParametersBuilder.
sourcepub const fn with_curve(self, ecc_curve: EccCurve) -> Self
pub const fn with_curve(self, ecc_curve: EccCurve) -> Self
Adds EccCurve to the PublicEccParametersBuilder.
sourcepub const fn with_key_derivation_function_scheme(
self,
key_derivation_function_scheme: KeyDerivationFunctionScheme
) -> Self
pub const fn with_key_derivation_function_scheme(
self,
key_derivation_function_scheme: KeyDerivationFunctionScheme
) -> Self
Adds KeyDerivationFunctionScheme to the PublicEccParametersBuilder.
sourcepub const fn with_is_signing_key(self, set: bool) -> Self
pub const fn with_is_signing_key(self, set: bool) -> Self
Adds a flag that indicates if the key is going to be used for signing to the PublicEccParametersBuilder.
Arguments
set-trueinidcates that the key is going to be used for signing operations.falseindicates that the key is not going to be used for signing operations.
sourcepub const fn with_is_decryption_key(self, set: bool) -> Self
pub const fn with_is_decryption_key(self, set: bool) -> Self
Adds a flag that indicates if the key is going to be used for decryption to the PublicEccParametersBuilder.
Arguments
set-trueindicates that the key is going to be used for decryption operations.falseindicates that the key is not going to be used for decryption operations.
sourcepub const fn with_restricted(self, set: bool) -> Self
pub const fn with_restricted(self, set: bool) -> Self
Adds a flag that inidcates if the key is going to be restrictied to the PublicEccParametersBuilder.
Arguments
set-trueindicates that it is going to be a restricted key.falseindicates that it is going to be a non restricted key.
sourcepub fn build(self) -> Result<PublicEccParameters>
pub fn build(self) -> Result<PublicEccParameters>
Build an object given the previously provided parameters.
The only mandatory parameters are the asymmetric scheme and the elliptic curve.
Errors
- if no asymmetric scheme is set,
ParamsMissingwrapper error is returned. - if the
for_signing,for_decryptionandrestrictedparameters are inconsistent with the rest of the parameters,InconsistentParamswrapper error is returned
Trait Implementations
sourceimpl Clone for PublicEccParametersBuilder
impl Clone for PublicEccParametersBuilder
sourcefn clone(&self) -> PublicEccParametersBuilder
fn clone(&self) -> PublicEccParametersBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PublicEccParametersBuilder
impl Debug for PublicEccParametersBuilder
sourceimpl Default for PublicEccParametersBuilder
impl Default for PublicEccParametersBuilder
sourcefn default() -> PublicEccParametersBuilder
fn default() -> PublicEccParametersBuilder
Returns the “default value” for a type. Read more
impl Copy for PublicEccParametersBuilder
Auto Trait Implementations
impl RefUnwindSafe for PublicEccParametersBuilder
impl Send for PublicEccParametersBuilder
impl Sync for PublicEccParametersBuilder
impl Unpin for PublicEccParametersBuilder
impl UnwindSafe for PublicEccParametersBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more