summary refs log tree commit diff
path: root/crypto/src/bcpg/ModDetectionCodePacket.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-20 15:23:47 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-20 15:23:47 +0700
commit58cb9bd8b944b5c4269204eeab127de9203b9ac1 (patch)
treee23638c104f1ecf474994acf79dddef7fb7c198f /crypto/src/bcpg/ModDetectionCodePacket.cs
parentAdd tag bounds check to prevent old packet confusion. (diff)
downloadBouncyCastle.NET-ed25519-58cb9bd8b944b5c4269204eeab127de9203b9ac1.tar.xz
Add EdDsa_Legacy
Diffstat (limited to 'crypto/src/bcpg/ModDetectionCodePacket.cs')
-rw-r--r--crypto/src/bcpg/ModDetectionCodePacket.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/bcpg/ModDetectionCodePacket.cs b/crypto/src/bcpg/ModDetectionCodePacket.cs
index 6bb23645a..ae8283aef 100644
--- a/crypto/src/bcpg/ModDetectionCodePacket.cs
+++ b/crypto/src/bcpg/ModDetectionCodePacket.cs
@@ -33,10 +33,9 @@ namespace Org.BouncyCastle.Bcpg
 			return (byte[]) digest.Clone();
         }
 
-		public override void Encode(
-            BcpgOutputStream bcpgOut)
+		public override void Encode(BcpgOutputStream bcpgOut)
         {
-            bcpgOut.WritePacket(PacketTag.ModificationDetectionCode, digest, false);
+            bcpgOut.WritePacket(PacketTag.ModificationDetectionCode, digest);
         }
     }
 }