summary refs log tree commit diff
path: root/crypto/src/asn1/misc/IDEACBCPar.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/misc/IDEACBCPar.cs')
-rw-r--r--crypto/src/asn1/misc/IDEACBCPar.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/asn1/misc/IDEACBCPar.cs b/crypto/src/asn1/misc/IDEACBCPar.cs
index 9ae9f6faf..96bfb89b0 100644
--- a/crypto/src/asn1/misc/IDEACBCPar.cs
+++ b/crypto/src/asn1/misc/IDEACBCPar.cs
@@ -55,9 +55,9 @@ namespace Org.BouncyCastle.Asn1.Misc
          */
         public override Asn1Object ToAsn1Object()
         {
-            Asn1EncodableVector v = new Asn1EncodableVector();
-            v.AddOptional(iv);
-            return new DerSequence(v);
+            return iv != null
+                ?   new DerSequence(iv)
+                :   DerSequence.Empty;
         }
     }
 }