pub struct KeyType(/* private fields */);Expand description
The name of a key algorithm, used with PKeyRef::is_a.
In OpenSSL 3.0+, provider-supplied keys do not have a meaningful numeric
id (EVP_PKEY_id returns -1), so identifying them requires a name-based
check via EVP_PKEY_is_a. KeyType wraps the algorithm name as a static
C string and exposes constants for common algorithms.
Implementations§
Source§impl KeyType
impl KeyType
pub const RSA: KeyType
pub const RSA_PSS: KeyType
pub const DSA: KeyType
pub const DH: KeyType
pub const EC: KeyType
pub const ED25519: KeyType
pub const ED448: KeyType
pub const X25519: KeyType
pub const X448: KeyType
pub const HMAC: KeyType
pub const CMAC: KeyType
pub const ML_DSA_44: KeyType
pub const ML_DSA_65: KeyType
pub const ML_DSA_87: KeyType
pub const ML_KEM_512: KeyType
pub const ML_KEM_768: KeyType
pub const ML_KEM_1024: KeyType
Trait Implementations§
impl Copy for KeyType
impl Eq for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnsafeUnpin for KeyType
impl UnwindSafe for KeyType
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