safequard-api-for-react-native
    Preparing search index...

    Function safequard_mlkem768_encrypt

    • Parameters

      • message: Uint8Array

        The buffer to the message to encrypt.

      • encap_key: Uint8Array

        The buffer to the encapsulation key. Must have size 1184.

      • ciphertext: Uint8Array

        The buffer for the ciphertext. Must have size 1088.

      • encrypted_message: Uint8Array

        The buffer for the encrypted message. Must have size message length + 16.

      Returns void

      Encrypt a message using an encapsulation key.

      Encrypt a message by encapsulating the encapsulation key and encrypting the message with the resulting shared secret. This function can be called multiple times.