std.crypto.Certificate: support 3072 bits RSA certificate (#19591)

Used by musicbrainz.org API.
This commit is contained in:
Andrew Kelley 2024-04-09 12:16:45 -07:00 committed by GitHub
parent 9d27f34d04
commit fc17402919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -772,7 +772,7 @@ fn verifyRsa(
Hash.hash(message, &msg_hashed, .{});
switch (modulus.len) {
inline 128, 256, 512 => |modulus_len| {
inline 128, 256, 384, 512 => |modulus_len| {
const ps_len = modulus_len - (hash_der.len + msg_hashed.len) - 3;
const em: [modulus_len]u8 =
[2]u8{ 0, 1 } ++