diff options
author | David Hook <dgh@cryptoworkshop.com> | 2023-07-23 11:44:33 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2023-07-23 11:44:33 +1000 |
commit | 541c6c4d31caf9169fc364a4c02be4878feab0c2 (patch) | |
tree | d09224ee2c4dae949e17aec069f1812c9a0bf69c /crypto | |
parent | Add Rfc5649WrapEngine (diff) | |
download | BouncyCastle.NET-ed25519-541c6c4d31caf9169fc364a4c02be4878feab0c2.tar.xz |
fixed encapsulation length
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs | 2 |
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 } } |