API reference for crystals-kyber-js/main
    Preparing search index...

    Function createMlKem768

    • Creates a pre-initialized MlKem768 instance with synchronous operations.

      Returns Promise<MlKemInterface>

      A promise that resolves to an MlKemInterface instance.

      const ctx = await createMlKem768();
      const [pk, sk] = ctx.generateKeyPair(); // sync
      const [ct, ssS] = ctx.encap(pk); // sync
      const ssR = ctx.decap(ct, sk); // sync