pub enum DevicePublicKey {
P384(VerifyingKey),
P256(VerifyingKey),
Ed25519(VerifyingKey),
}Variants§
Implementations§
Source§impl DevicePublicKey
impl DevicePublicKey
pub fn asym_algo(&self) -> u32
pub fn algo_name(&self) -> &'static str
Sourcepub fn verify_signature(
&self,
message: &[u8],
sig_bytes: &[u8],
) -> Result<(), CryptoError>
pub fn verify_signature( &self, message: &[u8], sig_bytes: &[u8], ) -> Result<(), CryptoError>
Verifies a signature over message using this public key.
Supports SPDM raw concatenated (r || s) format as well as DER format.
Trait Implementations§
Source§impl Clone for DevicePublicKey
impl Clone for DevicePublicKey
Auto Trait Implementations§
impl Forget for DevicePublicKey
impl Freeze for DevicePublicKey
impl Move for DevicePublicKey
impl RefUnwindSafe for DevicePublicKey
impl Send for DevicePublicKey
impl Sync for DevicePublicKey
impl Unpin for DevicePublicKey
impl UnsafeUnpin for DevicePublicKey
impl UnwindSafe for DevicePublicKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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