File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
252254unsafe impl Send for Params { }
253255unsafe 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
256259const RSA_MIN_MODULUS_BITS : usize = 2048 ;
257260const RSA_MAX_MODULUS_BITS : usize = 8192 ;
258261
You can’t perform that action at this time.
0 commit comments