Enum josekit::jws::alg::eddsa::EddsaJwsAlgorithm [−][src]
pub enum EddsaJwsAlgorithm {
Eddsa,
}
Variants
EdDSA signature algorithms
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.
Return a signer 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.
Return a signer 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.
Return a signer 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.
pub fn verifier_from_der(
&self,
input: impl AsRef<[u8]>
) -> Result<EddsaJwsVerifier, JoseError>
pub fn verifier_from_der(
&self,
input: impl AsRef<[u8]>
) -> Result<EddsaJwsVerifier, JoseError>
Return a verifier from a public key that is a DER encoded SubjectPublicKeyInfo.
Arguments
input
- A public key that is a DER encoded SubjectPublicKeyInfo.
pub fn verifier_from_pem(
&self,
input: impl AsRef<[u8]>
) -> Result<EddsaJwsVerifier, JoseError>
pub fn verifier_from_pem(
&self,
input: impl AsRef<[u8]>
) -> Result<EddsaJwsVerifier, JoseError>
Return a verifier from a key of common PEM format.
Common PEM format is a DER and base64 encoded SubjectPublicKeyInfo that surrounded by “—–BEGIN/END PUBLIC KEY––”.
Arguments
input
- A key of common or traditional PEM format.
Return a verifier from a public key that is formatted by a JWK of OKP type.
Arguments
jwk
- A public key that is formatted by a JWK of OKP type.
Trait Implementations
type Target = dyn JwsAlgorithm
type Target = dyn JwsAlgorithm
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for EddsaJwsAlgorithm
impl Send for EddsaJwsAlgorithm
impl Sync for EddsaJwsAlgorithm
impl Unpin for EddsaJwsAlgorithm
impl UnwindSafe for EddsaJwsAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.