pub enum PkiKeypair {
    P256(SigningKey),
    P384(SigningKey),
    P521(P521PkiKeypair),
    Ed25519(Ed25519PkiKeypair),
}Variants§
Implementations§
Source§impl PkiKeypair
 
impl PkiKeypair
pub fn signing_key_bytes(&self) -> Vec<u8>
pub fn public_key_bytes(&self) -> Vec<u8>
pub fn public_key_identifier(&self) -> Vec<u8>
Source§impl PkiKeypair
 
impl PkiKeypair
pub fn new( signature_scheme: SignatureScheme, sk: Vec<u8>, ) -> MlsProviderResult<Self>
pub fn signature_algorithm(&self) -> AlgorithmIdentifierRef<'_>
pub fn spki(&self) -> MlsProviderResult<SubjectPublicKeyInfoOwned>
pub fn akid(&self) -> MlsProviderResult<AuthorityKeyIdentifier>
pub fn revoke_certs( &self, issuer_cert: &Certificate, revoked_cert_serial_numbers: Vec<Vec<u8>>, ) -> MlsProviderResult<CertificateList>
pub fn re_sign( &self, signer_cert: &Certificate, target: &Certificate, validity: Option<Duration>, ) -> MlsProviderResult<Certificate>
pub fn generate_cert( &self, args: CertificateGenerationArgs<'_>, ) -> MlsProviderResult<Certificate>
pub fn rand_unchecked(alg: SignatureScheme) -> Self
pub fn rand( alg: SignatureScheme, crypto: &RustCrypto, ) -> MlsProviderResult<Self>
Trait Implementations§
Source§impl Clone for PkiKeypair
 
impl Clone for PkiKeypair
Source§fn clone(&self) -> PkiKeypair
 
fn clone(&self) -> PkiKeypair
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl Freeze for PkiKeypair
impl RefUnwindSafe for PkiKeypair
impl Send for PkiKeypair
impl Sync for PkiKeypair
impl Unpin for PkiKeypair
impl UnwindSafe for PkiKeypair
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more