Struct openmls::ciphersuite::signature::SignaturePublicKey
source · [−]pub struct SignaturePublicKey { /* private fields */ }
Expand description
A public signature key.
Implementations
sourceimpl SignaturePublicKey
impl SignaturePublicKey
sourcepub fn new(
bytes: Vec<u8>,
signature_scheme: SignatureScheme
) -> Result<Self, CryptoError>
pub fn new(
bytes: Vec<u8>,
signature_scheme: SignatureScheme
) -> Result<Self, CryptoError>
Create a new signature public key from raw key bytes.
sourcepub fn verify(
&self,
backend: &impl OpenMlsCryptoProvider,
signature: &Signature,
payload: &[u8]
) -> Result<(), CryptoError>
pub fn verify(
&self,
backend: &impl OpenMlsCryptoProvider,
signature: &Signature,
payload: &[u8]
) -> Result<(), CryptoError>
Verify a Signature
on the payload
byte slice with the keypair’s
public key.
sourcepub fn signature_scheme(&self) -> SignatureScheme
pub fn signature_scheme(&self) -> SignatureScheme
Get the signature scheme of the public key.
Trait Implementations
sourceimpl Clone for SignaturePublicKey
impl Clone for SignaturePublicKey
sourcefn clone(&self) -> SignaturePublicKey
fn clone(&self) -> SignaturePublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SignaturePublicKey
impl Debug for SignaturePublicKey
sourceimpl<'de> Deserialize<'de> for SignaturePublicKey
impl<'de> Deserialize<'de> for SignaturePublicKey
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for SignaturePublicKey
impl Hash for SignaturePublicKey
sourceimpl PartialEq<SignaturePublicKey> for SignaturePublicKey
impl PartialEq<SignaturePublicKey> for SignaturePublicKey
sourcefn eq(&self, other: &SignaturePublicKey) -> bool
fn eq(&self, other: &SignaturePublicKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SignaturePublicKey) -> bool
fn ne(&self, other: &SignaturePublicKey) -> bool
This method tests for !=
.
sourceimpl Serialize for SignaturePublicKey
impl Serialize for SignaturePublicKey
sourceimpl Serialize for SignaturePublicKey
impl Serialize for SignaturePublicKey
sourceimpl Size for SignaturePublicKey
impl Size for SignaturePublicKey
fn tls_serialized_len(&self) -> usize
impl Eq for SignaturePublicKey
impl StructuralEq for SignaturePublicKey
impl StructuralPartialEq for SignaturePublicKey
Auto Trait Implementations
impl RefUnwindSafe for SignaturePublicKey
impl Send for SignaturePublicKey
impl Sync for SignaturePublicKey
impl Unpin for SignaturePublicKey
impl UnwindSafe for SignaturePublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more