#[non_exhaustive]#[repr(i32)]pub enum SigningAlgorithm {
Ed25519 = -8,
P256 = -7,
}Expand description
Currently Ed25519 and P256.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl SigningAlgorithm
impl SigningAlgorithm
pub fn mechanism(&self) -> Mechanism
pub fn signature_serialization(&self) -> SignatureSerialization
pub fn generate_private_key<C: CryptoClient>( &self, trussed: &mut C, location: Location, ) -> KeyId
pub fn derive_public_key<C: CryptoClient>( &self, trussed: &mut C, private_key: KeyId, ) -> SerializedKey
pub fn sign<C: CryptoClient>( &self, trussed: &mut C, key: KeyId, data: &[u8], ) -> Signature
Trait Implementations§
Source§impl Clone for SigningAlgorithm
impl Clone for SigningAlgorithm
Source§fn clone(&self) -> SigningAlgorithm
fn clone(&self) -> SigningAlgorithm
Returns a duplicate 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 moreSource§impl Debug for SigningAlgorithm
impl Debug for SigningAlgorithm
Source§impl From<SigningAlgorithm> for i32
impl From<SigningAlgorithm> for i32
Source§fn from(alg: SigningAlgorithm) -> Self
fn from(alg: SigningAlgorithm) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SigningAlgorithm
impl PartialEq for SigningAlgorithm
Source§impl TryFrom<i32> for SigningAlgorithm
impl TryFrom<i32> for SigningAlgorithm
impl Copy for SigningAlgorithm
impl Eq for SigningAlgorithm
impl StructuralPartialEq for SigningAlgorithm
Auto Trait Implementations§
impl Freeze for SigningAlgorithm
impl RefUnwindSafe for SigningAlgorithm
impl Send for SigningAlgorithm
impl Sync for SigningAlgorithm
impl Unpin for SigningAlgorithm
impl UnwindSafe for SigningAlgorithm
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