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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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