Skip to content

Commit

Permalink
pkcs1v15: note RSASSA-PKCS1-v1_5 in docs (#324)
Browse files Browse the repository at this point in the history
This is the name for PKCS#1v1.5 signatures originally specified in
RFC3447 but is also used by RFC8017 (which we cite)
  • Loading branch information
tarcieri committed May 3, 2023
1 parent 901765d commit 94856ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pkcs1v15.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl PaddingScheme for Pkcs1v15Encrypt {
}
}

/// Digital signatures using PKCS#1 v1.5 padding.
/// `RSASSA-PKCS1-v1_5`: digital signatures using PKCS#1 v1.5 padding.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Pkcs1v15Sign {
/// Length of hash to use.
Expand Down
2 changes: 1 addition & 1 deletion src/pkcs1v15/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use alloc::{boxed::Box, string::ToString};
use core::fmt::{Debug, Display, Formatter, LowerHex, UpperHex};
use num_bigint::BigUint;

/// PKCS#1 v1.5 signatures as described in [RFC8017 § 8.2].
/// `RSASSA-PKCS1-v1_5` signatures as described in [RFC8017 § 8.2].
///
/// [RFC8017 § 8.2]: https://datatracker.ietf.org/doc/html/rfc8017#section-8.2
#[derive(Clone, PartialEq, Eq)]
Expand Down
2 changes: 1 addition & 1 deletion src/pkcs1v15/signing_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use signature::{
};
use zeroize::ZeroizeOnDrop;

/// Signing key for PKCS#1 v1.5 signatures as described in [RFC8017 § 8.2].
/// Signing key for `RSASSA-PKCS1-v1_5` signatures as described in [RFC8017 § 8.2].
///
/// [RFC8017 § 8.2]: https://datatracker.ietf.org/doc/html/rfc8017#section-8.2
#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/pkcs1v15/verifying_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use pkcs8::{
};
use signature::{hazmat::PrehashVerifier, DigestVerifier, Verifier};

/// Verifying key for PKCS#1 v1.5 signatures as described in [RFC8017 § 8.2].
/// Verifying key for `RSASSA-PKCS1-v1_5` signatures as described in [RFC8017 § 8.2].
///
/// [RFC8017 § 8.2]: https://datatracker.ietf.org/doc/html/rfc8017#section-8.2
#[derive(Debug)]
Expand Down

0 comments on commit 94856ec

Please sign in to comment.