Creates a pre-initialized MlKem1024 instance with synchronous operations.
A promise that resolves to an MlKemInterface instance.
const ctx = await createMlKem1024();const [pk, sk] = ctx.generateKeyPair(); // syncconst [ct, ssS] = ctx.encap(pk); // syncconst ssR = ctx.decap(ct, sk); // sync Copy
const ctx = await createMlKem1024();const [pk, sk] = ctx.generateKeyPair(); // syncconst [ct, ssS] = ctx.encap(pk); // syncconst ssR = ctx.decap(ct, sk); // sync
Creates a pre-initialized MlKem1024 instance with synchronous operations.