pub struct KeyUsage(pub u32);Expand description
Bitmask of key usage bits from an X.509 keyUsage extension.
Returned by X509::key_usage. Combine constants with | or test
individual bits with Self::contains.
Tuple Fields§
§0: u32Implementations§
Source§impl KeyUsage
impl KeyUsage
Sourcepub const DIGITAL_SIGNATURE: Self
pub const DIGITAL_SIGNATURE: Self
digitalSignature — signing data and authentication.
Sourcepub const NON_REPUDIATION: Self
pub const NON_REPUDIATION: Self
nonRepudiation (contentCommitment in RFC 5280).
Sourcepub const KEY_ENCIPHERMENT: Self
pub const KEY_ENCIPHERMENT: Self
keyEncipherment — encrypting symmetric keys.
Sourcepub const DATA_ENCIPHERMENT: Self
pub const DATA_ENCIPHERMENT: Self
dataEncipherment — directly encrypting data.
Sourcepub const KEY_AGREEMENT: Self
pub const KEY_AGREEMENT: Self
keyAgreement — Diffie-Hellman key exchange.
Sourcepub const KEY_CERT_SIGN: Self
pub const KEY_CERT_SIGN: Self
keyCertSign — signing certificates.
Sourcepub const ENCIPHER_ONLY: Self
pub const ENCIPHER_ONLY: Self
encipherOnly — only encrypt during key agreement.
Sourcepub const DECIPHER_ONLY: Self
pub const DECIPHER_ONLY: Self
decipherOnly — only decrypt during key agreement.
Trait Implementations§
impl Copy for KeyUsage
impl Eq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations§
impl Freeze for KeyUsage
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnsafeUnpin for KeyUsage
impl UnwindSafe for KeyUsage
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