summary refs log tree commit diff
path: root/crypto/src/asn1/BEROctetStringGenerator.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-16 22:37:52 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-16 22:37:52 +0700
commitbe15049124860ccb7335b92215e8b8dfa1821bf9 (patch)
tree7a86ed2110021307465a617076d601ca812c69ed /crypto/src/asn1/BEROctetStringGenerator.cs
parentMake cast more specific (diff)
downloadBouncyCastle.NET-ed25519-be15049124860ccb7335b92215e8b8dfa1821bf9.tar.xz
ASN.1: Staged encoding
Diffstat (limited to 'crypto/src/asn1/BEROctetStringGenerator.cs')
-rw-r--r--crypto/src/asn1/BEROctetStringGenerator.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/asn1/BEROctetStringGenerator.cs b/crypto/src/asn1/BEROctetStringGenerator.cs
index 37e46bea5..de0a6c0b8 100644
--- a/crypto/src/asn1/BEROctetStringGenerator.cs
+++ b/crypto/src/asn1/BEROctetStringGenerator.cs
@@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Asn1
 
 				if (_off == _buf.Length)
 				{
-					DerOctetString.Encode(_derOut, true, _buf, 0, _off);
+					DerOctetString.Encode(_derOut, _buf, 0, _off);
 					_off = 0;
 				}
 			}
@@ -88,13 +88,13 @@ namespace Org.BouncyCastle.Asn1
                 {
                     Array.Copy(b, off, _buf, _off, available);
                     count += available;
-                    DerOctetString.Encode(_derOut, true, _buf, 0, bufLen);
+                    DerOctetString.Encode(_derOut, _buf, 0, bufLen);
                 }
 
                 int remaining;
                 while ((remaining = len - count) >= bufLen)
                 {
-                    DerOctetString.Encode(_derOut, true, b, off + count, bufLen);
+                    DerOctetString.Encode(_derOut, b, off + count, bufLen);
                     count += bufLen;
                 }
 
@@ -123,7 +123,7 @@ namespace Org.BouncyCastle.Asn1
 			{
 				if (_off != 0)
 				{
-					DerOctetString.Encode(_derOut, true, _buf, 0, _off);
+					DerOctetString.Encode(_derOut, _buf, 0, _off);
 				}
 
                 _derOut.FlushInternal();