commit fbaefcaa946b74b0702cf5a60e76b694d870d04e (tree)
parent a6ede7ba86987b9ae2bb6b8aac60f66af56e7b08
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date: Tue, 5 Nov 2024 04:19:35 -0500
std.crypto.tls: support the same key sizes as certificate verification
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);