[−][src]Struct osshkeys::keys::ed25519::Ed25519KeyPair
Represent the Ed25519 key pair
Methods
impl Ed25519KeyPair
[src]
pub fn generate(bits: usize) -> OsshResult<Self>
[src]
Generate Ed25519 key pair
The bits parameter should be 256 bits or 0
to use default length (256 bits).
pub fn clone_public_key(&self) -> Result<Ed25519PublicKey, Error>
[src]
Clone the public parts to generate public key
Trait Implementations
impl Key for Ed25519KeyPair
[src]
impl PublicPart for Ed25519KeyPair
[src]
fn blob(&self) -> Result<Vec<u8>, Error>
[src]
fn verify(&self, data: &[u8], sig: &[u8]) -> Result<bool, Error>
[src]
fn fingerprint(&self, hash: FingerprintHash) -> OsshResult<Vec<u8>>
[src]
Hash the blob of the public key to generate the fingerprint
impl PrivatePart for Ed25519KeyPair
[src]
impl From<Ed25519KeyPair> for KeyPair
[src]
fn from(inner: Ed25519KeyPair) -> KeyPair
[src]
Auto Trait Implementations
impl Sync for Ed25519KeyPair
impl Send for Ed25519KeyPair
impl Unpin for Ed25519KeyPair
impl RefUnwindSafe for Ed25519KeyPair
impl UnwindSafe for Ed25519KeyPair
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self