Skip to content

Commit d132442

Browse files
committed
Link RSA signature provider references
1 parent cddb6ca commit d132442

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/verify.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ pub static SUPPORTED_SIG_ALGS: WebPkiSupportedAlgorithms = WebPkiSupportedAlgori
3636
RSA_PSS_SHA384,
3737
RSA_PSS_SHA256,
3838
// RFC 4055 section 2.1 requires accepting hash AlgorithmIdentifiers both with
39-
// explicit NULL parameters and with parameters absent; rustls-webpki registers both
40-
// forms for RSA PKCS#1 certificate signatures.
39+
// explicit NULL parameters and with parameters absent:
40+
// https://www.rfc-editor.org/rfc/rfc4055.html#section-2.1
41+
// rustls-webpki mirrors that with separate RSA PKCS#1 `_ABSENT_PARAMS` algorithms:
42+
// https://docs.rs/rustls-webpki/0.103.13/src/rustls_webpki/aws_lc_rs_algs.rs.html#186-245
4143
RSA_PKCS1_SHA512,
4244
RSA_PKCS1_SHA512_ABSENT_PARAMS,
4345
RSA_PKCS1_SHA384,
@@ -252,7 +254,8 @@ enum Params {
252254
unsafe impl Send for Params {}
253255
unsafe impl Sync for Params {}
254256

255-
// Match rustls-webpki's RSA verification algorithms, which are defined for 2048-8192-bit keys.
257+
// Match rustls-webpki's RSA verification algorithms, which are defined for 2048-8192-bit keys:
258+
// https://docs.rs/rustls-webpki/0.103.13/src/rustls_webpki/aws_lc_rs_algs.rs.html#162-182
256259
const RSA_MIN_MODULUS_BITS: usize = 2048;
257260
const RSA_MAX_MODULUS_BITS: usize = 8192;
258261

0 commit comments

Comments
 (0)