summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2023-07-23 11:44:33 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2023-07-23 11:44:33 +1000
commit541c6c4d31caf9169fc364a4c02be4878feab0c2 (patch)
treed09224ee2c4dae949e17aec069f1812c9a0bf69c /crypto
parentAdd Rfc5649WrapEngine (diff)
downloadBouncyCastle.NET-ed25519-541c6c4d31caf9169fc364a4c02be4878feab0c2.tar.xz
fixed encapsulation length
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs b/crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs
index b18c532fa..d487412d1 100644
--- a/crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs
+++ b/crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs
@@ -31,7 +31,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Hqc
             return session_key;
         }
 
-        public int EncapsulationLength => key.Parameters.NBytes + key.Parameters.N1n2Bytes + 64;
+        public int EncapsulationLength => key.Parameters.NBytes + key.Parameters.N1n2Bytes + 64 + 16; // SHA-512 + salt
  
     }
 }