Function
Factory function to create a HQC-256 KEM instance
Initialized HQC-256 instance
createHQC256
If module initialization fails
import { createHQC256 } from '@openforge-sh/liboqs';const kem = await createHQC256();const { publicKey, secretKey } = kem.generateKeyPair();kem.destroy(); Copy
import { createHQC256 } from '@openforge-sh/liboqs';const kem = await createHQC256();const { publicKey, secretKey } = kem.generateKeyPair();kem.destroy();
Factory function to create a HQC-256 KEM instance