srctree

Andrew Kelley parent 9d27f34d fc174029
std.crypto.Certificate: support 3072 bits RSA certificate (#19591)

Used by musicbrainz.org API.

inlinesplit
lib/std/crypto/Certificate.zig added: 2, removed: 2, total 0
@@ -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 } ++