x509: optimize the performance of checkSignature #181

This commit is contained in:
Sun Yimin 2023-11-09 13:03:18 +08:00 committed by GitHub
parent e8bbfaa5b7
commit 3d299a6480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -741,6 +741,7 @@ func checkSignature(algo SignatureAlgorithm, signed, signature []byte, publicKey
if details.algo == algo { if details.algo == algo {
hashType = details.hash hashType = details.hash
pubKeyAlgo = details.pubKeyAlgo pubKeyAlgo = details.pubKeyAlgo
break
} }
} }