From fc174029197115302b68badb8c4880932889a98b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 9 Apr 2024 12:16:45 -0700 Subject: [PATCH] std.crypto.Certificate: support 3072 bits RSA certificate (#19591) Used by musicbrainz.org API. --- lib/std/crypto/Certificate.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/crypto/Certificate.zig b/lib/std/crypto/Certificate.zig index c3ac3e22aa..b1cc4fc095 100644 --- a/lib/std/crypto/Certificate.zig +++ b/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 } ++