[−][src]Struct nss::ec::PublicKey
Fields
curve: Curve
wrapped: PK11PublicKey
Implementations
impl PublicKey
[src][−]
pub(crate) fn from(curve: Curve, key: PK11PublicKey) -> Self
[src]
pub fn curve(&self) -> Curve
[src]
pub fn verify(
&self,
message: &[u8],
signature: &[u8],
hash_algorithm: HashAlgorithm
) -> Result<()>
[src][−]
&self,
message: &[u8],
signature: &[u8],
hash_algorithm: HashAlgorithm
) -> Result<()>
ECDSA verify operation
pub fn to_bytes(&self) -> Result<Vec<u8>>
[src]
pub fn from_bytes(curve: Curve, bytes: &[u8]) -> Result<PublicKey>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl !Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,