pub enum ECCCurve {
Curve25519,
Ed25519,
P256,
P384,
P521,
BrainpoolP256r1,
BrainpoolP384r1,
BrainpoolP512r1,
Secp256k1,
Unknown(ObjectIdentifier),
}
Variants§
Curve25519
Ed25519
P256
P384
P521
BrainpoolP256r1
BrainpoolP384r1
BrainpoolP512r1
Secp256k1
Unknown(ObjectIdentifier)
Implementations§
Source§impl ECCCurve
impl ECCCurve
Sourcepub const fn secret_key_length(&self) -> usize
pub const fn secret_key_length(&self) -> usize
Length of secret key in bytes
Sourcepub fn pubkey_algo(&self) -> Option<PublicKeyAlgorithm>
pub fn pubkey_algo(&self) -> Option<PublicKeyAlgorithm>
Required algo, or None for ECDSA/ECDH
Sourcepub fn hash_algo(&self) -> Result<HashAlgorithm>
pub fn hash_algo(&self) -> Result<HashAlgorithm>
Default hash algorithm for this curve
Sourcepub fn sym_algo(&self) -> Result<SymmetricKeyAlgorithm>
pub fn sym_algo(&self) -> Result<SymmetricKeyAlgorithm>
Default symmetric encryption algorithm for this curve
pub fn oid(&self) -> Vec<u8> ⓘ
Trait Implementations§
impl Eq for ECCCurve
impl StructuralPartialEq for ECCCurve
Auto Trait Implementations§
impl Freeze for ECCCurve
impl RefUnwindSafe for ECCCurve
impl Send for ECCCurve
impl Sync for ECCCurve
impl Unpin for ECCCurve
impl UnwindSafe for ECCCurve
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