[−][src]Enum sequoia_openpgp::policy::AsymmetricAlgorithm
Asymmetric encryption algorithms.
This type is for refining the StandardPolicy
with respect to
asymmetric algorithms. In contrast to PublicKeyAlgorithm
, it
does not concern itself with the use (encryption or signing), and
it does include key sizes (if applicable) and elliptic curves.
Key sizes put into are buckets, rounding down to the nearest
bucket. For example, a 3253-bit RSA key is categorized as
RSA3072
.
Note: This enum cannot be exhaustively matched to allow future extensions.
Variants (Non-exhaustive)
RSA with key sizes up to 2048-1 bit.
RSA with key sizes up to 3072-1 bit.
RSA with key sizes up to 4096-1 bit.
RSA with key sizes larger or equal to 4096 bit.
ElGamal with key sizes up to 2048-1 bit.
ElGamal with key sizes up to 3072-1 bit.
ElGamal with key sizes up to 4096-1 bit.
ElGamal with key sizes larger or equal to 4096 bit.
DSA with key sizes up to 2048-1 bit.
DSA with key sizes up to 3072-1 bit.
DSA with key sizes up to 4096-1 bit.
DSA with key sizes larger or equal to 4096 bit.
NIST curve P-256.
NIST curve P-384.
NIST curve P-521.
brainpoolP256r1.
brainpoolP512r1.
D.J. Bernstein's Curve25519.
Unknown algorithm.
Trait Implementations
impl Clone for AsymmetricAlgorithm
[src]
pub fn clone(&self) -> AsymmetricAlgorithm
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AsymmetricAlgorithm
[src]
impl Display for AsymmetricAlgorithm
[src]
impl From<AsymmetricAlgorithm> for u8
[src]
pub fn from(a: AsymmetricAlgorithm) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for AsymmetricAlgorithm
[src]
impl Send for AsymmetricAlgorithm
[src]
impl Sync for AsymmetricAlgorithm
[src]
impl Unpin for AsymmetricAlgorithm
[src]
impl UnwindSafe for AsymmetricAlgorithm
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,