From 541c6c4d31caf9169fc364a4c02be4878feab0c2 Mon Sep 17 00:00:00 2001 From: David Hook Date: Sun, 23 Jul 2023 11:44:33 +1000 Subject: fixed encapsulation length --- crypto/src/pqc/crypto/hqc/HqcKemExtractor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- cgit 1.5.1