From 3d299a64807727c3a1d7cdc5214ba6441b454fd7 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 9 Nov 2023 13:03:18 +0800 Subject: [PATCH] x509: optimize the performance of checkSignature #181 --- smx509/x509.go | 1 + 1 file changed, 1 insertion(+) diff --git a/smx509/x509.go b/smx509/x509.go index 24ac674..ce46d57 100644 --- a/smx509/x509.go +++ b/smx509/x509.go @@ -741,6 +741,7 @@ func checkSignature(algo SignatureAlgorithm, signed, signature []byte, publicKey if details.algo == algo { hashType = details.hash pubKeyAlgo = details.pubKeyAlgo + break } }