Class HqcKemExtractor
- Namespace
- Org.BouncyCastle.Pqc.Crypto.Hqc
- Assembly
- BouncyCastle.Cryptography.dll
public class HqcKemExtractor : IEncapsulatedSecretExtractor
- Inheritance
-
HqcKemExtractor
- Implements
- Inherited Members
Constructors
HqcKemExtractor(HqcPrivateKeyParameters)
public HqcKemExtractor(HqcPrivateKeyParameters privParams)
Parameters
privParamsHqcPrivateKeyParameters
Properties
EncapsulationLength
The length in bytes of the encapsulation.
public int EncapsulationLength { get; }
Property Value
Methods
ExtractSecret(byte[])
Generate an exchange pair based on the recipient public key.
public byte[] ExtractSecret(byte[] encapsulation)
Parameters
encapsulationbyte[]the encapsulated secret.
Returns
- byte[]