pub struct P256SecretKey { /* private fields */ }Implementations§
Source§impl P256SecretKey
impl P256SecretKey
Sourcepub fn generate() -> Result<P256SecretKey, Error>
pub fn generate() -> Result<P256SecretKey, Error>
Generates a random P256SecretKey.
pub fn from_bytes(bytes: &[u8; 32]) -> Result<P256SecretKey, Error>
pub fn public_key(&self) -> P256PublicKey
Trait Implementations§
Source§impl From<&P256SecretKey> for Jwk
impl From<&P256SecretKey> for Jwk
Source§fn from(key: &P256SecretKey) -> Self
fn from(key: &P256SecretKey) -> Self
Converts to this type from the input type.
Source§impl From<SecretKey> for P256SecretKey
impl From<SecretKey> for P256SecretKey
Auto Trait Implementations§
impl Freeze for P256SecretKey
impl RefUnwindSafe for P256SecretKey
impl Send for P256SecretKey
impl Sync for P256SecretKey
impl Unpin for P256SecretKey
impl UnsafeUnpin for P256SecretKey
impl UnwindSafe for P256SecretKey
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