Skip to content

Commit

Permalink
docs: fix small issue
Browse files Browse the repository at this point in the history
Fix the inline documentation of `PublicKeyVerifier::try_from` about
which RSA padding scheme is used when loading the key from a PEM file.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
  • Loading branch information
flavio committed Nov 15, 2022
1 parent 8316ee2 commit 23f4c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cosign/verification_constraint/public_key_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl PublicKeyVerifier {
/// The `key_raw` variable holds a PEM encoded representation of the
/// public key to be used at verification time. The verification
/// algorithm will be derived from the public key type:
/// * `RSA public key`: `RSA_PSS_SHA256`
/// * `RSA public key`: `RSA_PKCS1_SHA256`
/// * `EC public key with P-256 curve`: `ECDSA_P256_SHA256_ASN1`
/// * `EC public key with P-384 curve`: `ECDSA_P384_SHA384_ASN1`
/// * `Ed25519 public key`: `Ed25519`
Expand Down

0 comments on commit 23f4c92

Please sign in to comment.