Commit fc17402919

Andrew Kelley <andrew@ziglang.org>
2024-04-09 21:16:45
std.crypto.Certificate: support 3072 bits RSA certificate (#19591)
Used by musicbrainz.org API.
1 parent 9d27f34
Changed files (1)
lib
std
lib/std/crypto/Certificate.zig
@@ -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 } ++