Struct josekit::jwk::alg::ecx::EcxKeyPair [−][src]
pub struct EcxKeyPair { /* fields omitted */ }
Implementations
Create a Montgomery curve 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 Montgomery curve 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 Montgomery curve 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 EcxKeyPair
impl Send for EcxKeyPair
impl Sync for EcxKeyPair
impl Unpin for EcxKeyPair
impl UnwindSafe for EcxKeyPair
Blanket Implementations
Mutably borrows from an owned value. Read more