Struct josekit::jwk::alg::ed::EdKeyPair [−][src]
pub struct EdKeyPair { /* fields omitted */ }
Implementations
Create a EdDSA key pair from a private key that is a DER encoded PKCS#8 PrivateKeyInfo.
Arguments
input
- A private key that is a DER encoded PKCS#8 PrivateKeyInfo.
Create a EdDSA key pair from a private key of common or traditinal PEM format.
Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by “—–BEGIN/END PRIVATE KEY––”.
Traditional PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by “—–BEGIN/END ED25519/ED448 PRIVATE KEY––”.
Arguments
input
- A private key of common or traditinal PEM format.
Create a EdDSA key pair from a private key that is formatted by a JWK of OKP type.
Arguments
jwk
- A private key that is formatted by a JWK of OKP type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EdKeyPair
impl UnwindSafe for EdKeyPair
Blanket Implementations
Mutably borrows from an owned value. Read more