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