summary refs log tree commit diff
path: root/crypto/src/x509/X509V3CertificateGenerator.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-01-05 13:30:09 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-01-05 13:30:09 +0700
commita216f62bd14a9962eccb5ce7daf7820ccadadc23 (patch)
tree15aa2bd6aec9a20caf54eb0f1a5c691f9725f33e /crypto/src/x509/X509V3CertificateGenerator.cs
parentRefactor SendSignatureInput and callers (diff)
downloadBouncyCastle.NET-ed25519-a216f62bd14a9962eccb5ce7daf7820ccadadc23.tar.xz
Avoid intermediate allocations
Diffstat (limited to '')
-rw-r--r--crypto/src/x509/X509V3CertificateGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/x509/X509V3CertificateGenerator.cs b/crypto/src/x509/X509V3CertificateGenerator.cs
index 1854ac3b4..ee35b9479 100644
--- a/crypto/src/x509/X509V3CertificateGenerator.cs
+++ b/crypto/src/x509/X509V3CertificateGenerator.cs
@@ -260,7 +260,7 @@ namespace Org.BouncyCastle.X509
             TbsCertificateStructure tbsCert = tbsGen.GenerateTbsCertificate();
 
 			IStreamCalculator<IBlockResult> streamCalculator = signatureFactory.CreateCalculator();
-			using (Stream sigStream = streamCalculator.Stream)
+			using (var sigStream = streamCalculator.Stream)
             {
 				tbsCert.EncodeTo(sigStream, Asn1Encodable.Der);
 			}