[−][src]Struct tss_esapi::utils::TpmsEccParmsBuilder
Builder for TPMS_ECC_PARMS
values.
Fields
symmetric: Option<Cipher>
Symmetric cipher to be used in conjuction with the key
scheme: AsymSchemeUnion
Asymmetric scheme to be used for key operations
curve: EllipticCurve
Curve to be used with the key
for_signing: bool
Flag indicating whether the key shall be used for signing
for_decryption: bool
Flag indicating whether the key shall be used for decryption
restricted: bool
Flag indicating whether the key is restricted
Implementations
impl TpmsEccParmsBuilder
[src]
pub fn new_restricted_decryption_key(
symmetric: Cipher,
curve: EllipticCurve
) -> Self
[src]
symmetric: Cipher,
curve: EllipticCurve
) -> Self
Create parameters for a restricted decryption key (i.e. a storage key)
pub fn new_unrestricted_signing_key(
scheme: AsymSchemeUnion,
curve: EllipticCurve
) -> Self
[src]
scheme: AsymSchemeUnion,
curve: EllipticCurve
) -> Self
Create parameters for an unrestricted signing key
pub fn build(self) -> Result<TPMS_ECC_PARMS>
[src]
Build an object given the previously provded parameters.
The only mandatory parameters are the asymmetric scheme and the elliptic curve.
Errors
- if no asymmetric scheme is set,
ParamsMissing
wrapper error is returned. - if the
for_signing
,for_decryption
andrestricted
parameters are inconsistent with the rest of the parameters,InconsistentParams
wrapper error is returned
Trait Implementations
impl Clone for TpmsEccParmsBuilder
[src]
fn clone(&self) -> TpmsEccParmsBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TpmsEccParmsBuilder
[src]
impl Debug for TpmsEccParmsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TpmsEccParmsBuilder
impl Send for TpmsEccParmsBuilder
impl Sync for TpmsEccParmsBuilder
impl Unpin for TpmsEccParmsBuilder
impl UnwindSafe for TpmsEccParmsBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Free for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,