From fbaefcaa946b74b0702cf5a60e76b694d870d04e Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Tue, 5 Nov 2024 04:19:35 -0500 Subject: [PATCH] std.crypto.tls: support the same key sizes as certificate verification --- lib/std/crypto/tls/Client.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/crypto/tls/Client.zig b/lib/std/crypto/tls/Client.zig index 922f7b66cc..bbee90275f 100644 --- a/lib/std/crypto/tls/Client.zig +++ b/lib/std/crypto/tls/Client.zig @@ -1840,7 +1840,7 @@ const CertificatePublicKey = struct { const exponent = components.exponent; const modulus = components.modulus; switch (modulus.len) { - inline 128, 256, 512 => |modulus_len| { + inline 128, 256, 384, 512 => |modulus_len| { const key: PublicKey = try .fromBytes(exponent, modulus); const sig = RsaSignature.fromBytes(modulus_len, encoded_sig); try RsaSignature.concatVerify(modulus_len, sig, msg, key, Hash);