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

    Function safequard_dlms_auth_decrypt

    • ibrief Decrypt with authentication a message using AES-256-GCM.

      Authenticate and decrypt a message with AES-256-GCM with a previously initialised context from safequard_dlms_key_agreement_encap() or safequard_dlms_key_agreement_decap().

      The caller should call safequard_mlkem768_finalise() when no further encryption or decryption is needed with this key, and then

      Parameters

      • context: Uint8Array

        The buffer to the context.

      • aad: Uint8Array

        The buffer to the additional authenticated data.

      • encrypted_message: Uint8Array

        The buffer to the encrypted message.

      • message: Uint8Array

        An allocated buffer for the decrypted message. Must have size encrypted_message - 12 - 16.

      Returns void

      context can be freed.

      if message has invalid size or context is invalid.