diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-08-05 11:50:44 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-08-05 11:50:44 +0700 |
commit | e83da5b4289390bbf559b57078c0cccac941a8e2 (patch) | |
tree | 3a51576d18754764f5574fac08c960e8b57cd4b3 /crypto/src/crmf | |
parent | Perf. opts. in custom binary curves (diff) | |
download | BouncyCastle.NET-ed25519-e83da5b4289390bbf559b57078c0cccac941a8e2.tar.xz |
Remove unnecessary AsSpan
Diffstat (limited to 'crypto/src/crmf')
-rw-r--r-- | crypto/src/crmf/PKMacBuilder.cs | 2 |
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 |