[−][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
impl Deref for PublicKey
[src]
type Target = PK11PublicKey
The resulting type after dereferencing.
fn deref(&self) -> &PK11PublicKey
[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,