summary refs log tree commit diff
path: root/crypto/src/crmf/PKMacBuilder.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-08-05 11:50:44 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-08-05 11:50:44 +0700
commite83da5b4289390bbf559b57078c0cccac941a8e2 (patch)
tree3a51576d18754764f5574fac08c960e8b57cd4b3 /crypto/src/crmf/PKMacBuilder.cs
parentPerf. opts. in custom binary curves (diff)
downloadBouncyCastle.NET-ed25519-e83da5b4289390bbf559b57078c0cccac941a8e2.tar.xz
Remove unnecessary AsSpan
Diffstat (limited to 'crypto/src/crmf/PKMacBuilder.cs')
-rw-r--r--crypto/src/crmf/PKMacBuilder.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crmf/PKMacBuilder.cs b/crypto/src/crmf/PKMacBuilder.cs
index 8093eab44..9b483fbfb 100644
--- a/crypto/src/crmf/PKMacBuilder.cs
+++ b/crypto/src/crmf/PKMacBuilder.cs
@@ -88,7 +88,7 @@ namespace Org.BouncyCastle.Crmf
         public int Collect(Span<byte> destination)
         {
             byte[] result = Collect();
-            result.AsSpan().CopyTo(destination);
+            result.CopyTo(destination);
             return result.Length;
         }
 #endif