Crypto Lib
    Preparing search index...

    Function xwingEncap

    • X-Wing Encap (draft-connolly-cfrg-xwing-kem-06, section 5.6): the KEM's shared secret is X-Wing's own, used directly by the key schedule. eseed is the 64 bytes of encapsulation randomness.

      Parameters

      • recipientPub: Uint8Array
      • eseed: Uint8Array

      Returns { sharedSecret: Uint8Array; enc: Uint8Array }