From 88ec1837d40acc3ca18e44ff4888626dbcce7027 Mon Sep 17 00:00:00 2001 From: Bence Mali Date: Wed, 25 Sep 2024 14:41:08 +0200 Subject: [PATCH] GetBytes used for non-octet aligned signatures --- crypto/src/x509/X509Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/x509/X509Utilities.cs b/crypto/src/x509/X509Utilities.cs index 6f01fc53d..4326343f5 100644 --- a/crypto/src/x509/X509Utilities.cs +++ b/crypto/src/x509/X509Utilities.cs @@ -279,7 +279,7 @@ internal static bool VerifySignature(IVerifierFactory verifierFactory, Asn1Encod var result = CalculateResult(verifierFactory.CreateCalculator(), asn1Encodable); // TODO[api] Use GetOctetsSpan() once IsVerified(ReadOnlySpan) is available - return result.IsVerified(signature.GetOctets()); + return result.IsVerified(signature.GetBytes()); } internal static Asn1TaggedObject TrimExtensions(int tagNo, X509Extensions exts)