pub struct BuilderWithKeyBits<A: Algorithm, C: KeyConstraint = NoConstraint> { /* private fields */ }
Expand description
Builder type with key length provided in bits.
Implementations§
Source§impl BuilderWithKeyBits<AsymmetricAlgorithmId>
impl BuilderWithKeyBits<AsymmetricAlgorithmId>
Sourcepub fn with_params(
self,
params: BuilderOptions,
) -> BuilderWithParams<AsymmetricAlgorithmId, BuilderOptions>
pub fn with_params( self, params: BuilderOptions, ) -> BuilderWithParams<AsymmetricAlgorithmId, BuilderOptions>
Supply additional algorithm-specific parameters to generate a key with.
Source§impl BuilderWithKeyBits<Dh>
impl BuilderWithKeyBits<Dh>
Sourcepub fn with_params(self, params: DhParams) -> BuilderWithParams<Dh, DhParams>
pub fn with_params(self, params: DhParams) -> BuilderWithParams<Dh, DhParams>
Supply additional algorithm-specific parameters to generate a key with.
Source§impl<C: Curve> BuilderWithKeyBits<Ecdh<C>>
impl<C: Curve> BuilderWithKeyBits<Ecdh<C>>
Sourcepub fn with_params(self, params: ()) -> BuilderWithParams<Ecdh<C>>
pub fn with_params(self, params: ()) -> BuilderWithParams<Ecdh<C>>
Supply additional algorithm-specific parameters to generate a key with.
Is a no-op.
Source§impl<C: Curve> BuilderWithKeyBits<Ecdsa<C>>
impl<C: Curve> BuilderWithKeyBits<Ecdsa<C>>
Sourcepub fn with_params(self, params: ()) -> BuilderWithParams<Ecdsa<C>>
pub fn with_params(self, params: ()) -> BuilderWithParams<Ecdsa<C>>
Supply additional algorithm-specific parameters to generate a key with.
Is a no-op.
Source§impl BuilderWithKeyBits<Dsa>
impl BuilderWithKeyBits<Dsa>
Sourcepub fn with_params(self, params: DsaParams) -> BuilderWithParams<Dsa, DsaParams>
pub fn with_params(self, params: DsaParams) -> BuilderWithParams<Dsa, DsaParams>
Supply additional algorithm-specific parameters to generate a key with.
Source§impl BuilderWithKeyBits<Dsa, KeyBitsGte512Lte1024>
impl BuilderWithKeyBits<Dsa, KeyBitsGte512Lte1024>
Sourcepub fn with_params(
self,
params: DsaParamsV1,
) -> BuilderWithParams<Dsa, DsaParamsV1>
pub fn with_params( self, params: DsaParamsV1, ) -> BuilderWithParams<Dsa, DsaParamsV1>
Supply additional algorithm-specific parameters to generate a key with.
Source§impl BuilderWithKeyBits<Dsa, KeyBitsGt1024Lte3072>
impl BuilderWithKeyBits<Dsa, KeyBitsGt1024Lte3072>
Sourcepub fn with_params(
self,
params: DsaParamsV2,
) -> BuilderWithParams<Dsa, DsaParamsV2>
pub fn with_params( self, params: DsaParamsV2, ) -> BuilderWithParams<Dsa, DsaParamsV2>
Supply additional algorithm-specific parameters to generate a key with.
Source§impl BuilderWithKeyBits<AsymmetricAlgorithmId>
impl BuilderWithKeyBits<AsymmetricAlgorithmId>
Sourcepub fn build(self) -> Result<AsymmetricKey<AsymmetricAlgorithmId, Private>>
pub fn build(self) -> Result<AsymmetricKey<AsymmetricAlgorithmId, Private>>
Generate the final key.
Source§impl BuilderWithKeyBits<Rsa>
impl BuilderWithKeyBits<Rsa>
Source§impl BuilderWithKeyBits<Dsa>
impl BuilderWithKeyBits<Dsa>
Auto Trait Implementations§
impl<A, C> Freeze for BuilderWithKeyBits<A, C>where
A: Freeze,
impl<A, C> RefUnwindSafe for BuilderWithKeyBits<A, C>where
A: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, C> Send for BuilderWithKeyBits<A, C>
impl<A, C> Sync for BuilderWithKeyBits<A, C>
impl<A, C> Unpin for BuilderWithKeyBits<A, C>
impl<A, C> UnwindSafe for BuilderWithKeyBits<A, C>where
A: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more