Type Alias mas_jose::jwa::Rs384VerifyingKey
source · pub type Rs384VerifyingKey = VerifyingKey<Sha384>;
Aliased Type§
struct Rs384VerifyingKey { /* private fields */ }
Implementations
source§impl<D> VerifyingKey<D>where
D: Digest + AssociatedOid,
impl<D> VerifyingKey<D>where
D: Digest + AssociatedOid,
sourcepub fn new(key: RsaPublicKey) -> VerifyingKey<D>
pub fn new(key: RsaPublicKey) -> VerifyingKey<D>
Create a new verifying key with a prefix for the digest D
.
sourcepub fn new_with_prefix(key: RsaPublicKey) -> VerifyingKey<D>
👎Deprecated since 0.9.0: use VerifyingKey::new instead
pub fn new_with_prefix(key: RsaPublicKey) -> VerifyingKey<D>
Create a new verifying key with a prefix for the digest D
.
source§impl<D> VerifyingKey<D>where
D: Digest,
impl<D> VerifyingKey<D>where
D: Digest,
sourcepub fn new_unprefixed(key: RsaPublicKey) -> VerifyingKey<D>
pub fn new_unprefixed(key: RsaPublicKey) -> VerifyingKey<D>
Create a new verifying key from an RSA public key with an empty prefix.
§Note: unprefixed signatures are uncommon
In most cases you’ll want to use VerifyingKey::new
instead.
Trait Implementations
source§impl<D> AsRef<RsaPublicKey> for VerifyingKey<D>where
D: Digest,
impl<D> AsRef<RsaPublicKey> for VerifyingKey<D>where
D: Digest,
source§fn as_ref(&self) -> &RsaPublicKey
fn as_ref(&self) -> &RsaPublicKey
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<D> AssociatedAlgorithmIdentifier for VerifyingKey<D>where
D: Digest,
impl<D> AssociatedAlgorithmIdentifier for VerifyingKey<D>where
D: Digest,
source§const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs1::ALGORITHM_ID
const ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = pkcs1::ALGORITHM_ID
AlgorithmIdentifier
for this structure.source§impl<D> Clone for VerifyingKey<D>where
D: Digest,
impl<D> Clone for VerifyingKey<D>where
D: Digest,
source§fn clone(&self) -> VerifyingKey<D>
fn clone(&self) -> VerifyingKey<D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<D> Debug for VerifyingKey<D>
impl<D> Debug for VerifyingKey<D>
source§impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>where
D: Digest,
impl<D> DigestVerifier<D, Signature> for VerifyingKey<D>where
D: Digest,
source§impl<D> EncodePublicKey for VerifyingKey<D>where
D: Digest,
impl<D> EncodePublicKey for VerifyingKey<D>where
D: Digest,
source§fn to_public_key_der(&self) -> Result<Document, Error>
fn to_public_key_der(&self) -> Result<Document, Error>
Serialize a
Document
containing a SPKI-encoded public key.source§fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
fn to_public_key_pem(&self, line_ending: LineEnding) -> Result<String, Error>
Serialize this public key as PEM-encoded SPKI with the given
LineEnding
.source§fn write_public_key_der_file(&self, path: impl AsRef<Path>) -> Result<(), Error>
fn write_public_key_der_file(&self, path: impl AsRef<Path>) -> Result<(), Error>
Write ASN.1 DER-encoded public key to the given path
source§fn write_public_key_pem_file(
&self,
path: impl AsRef<Path>,
line_ending: LineEnding,
) -> Result<(), Error>
fn write_public_key_pem_file( &self, path: impl AsRef<Path>, line_ending: LineEnding, ) -> Result<(), Error>
Write ASN.1 DER-encoded public key to the given path
source§impl<D> From<RsaPublicKey> for VerifyingKey<D>where
D: Digest,
impl<D> From<RsaPublicKey> for VerifyingKey<D>where
D: Digest,
source§fn from(key: RsaPublicKey) -> VerifyingKey<D>
fn from(key: RsaPublicKey) -> VerifyingKey<D>
Converts to this type from the input type.
source§impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest,
impl<D> PrehashVerifier<Signature> for VerifyingKey<D>where
D: Digest,
source§impl<D> SignatureAlgorithmIdentifier for VerifyingKey<D>where
D: Digest + RsaSignatureAssociatedOid,
impl<D> SignatureAlgorithmIdentifier for VerifyingKey<D>where
D: Digest + RsaSignatureAssociatedOid,
source§const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = _
const SIGNATURE_ALGORITHM_IDENTIFIER: AlgorithmIdentifier<AnyRef<'static>> = _
AlgorithmIdentifier
for the corresponding singature system.source§impl<D> TryFrom<SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>> for VerifyingKey<D>where
D: Digest + AssociatedOid,
impl<D> TryFrom<SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>> for VerifyingKey<D>where
D: Digest + AssociatedOid,
source§fn try_from(
spki: SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>,
) -> Result<VerifyingKey<D>, Error>
fn try_from( spki: SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>, ) -> Result<VerifyingKey<D>, Error>
Performs the conversion.