Struct josekit::jwk::alg::ec::EcKeyPair [−][src]
pub struct EcKeyPair { /* fields omitted */ }
Implementations
Create a EC key pair from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
Arguments
input
- A private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.curve
- EC curve
Return a signer from a private key that is formatted by a JWK of EC type.
Arguments
jwk
- A private key that is formatted by a JWK of EC type.
Create a Ec 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 ECPrivateKey that surrounded by “—–BEGIN/END EC PRIVATE KEY––”.
Arguments
input
- A private key of common or traditinal PEM format.curve
- EC curve
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EcKeyPair
impl UnwindSafe for EcKeyPair
Blanket Implementations
Mutably borrows from an owned value. Read more