ddpi_elf_set_md5_sig operation

The ddpi_elf_set_md5_sig operation assigns the MD5 signature to a given ELF object. It copies the given unsigned char[16] buffer into the MD5 signature.

Prototype

int   ddpi_elf_set_md5_sig(
    Ddpi_Elf            elf,
    unsigned char       md5_sig[16],
    Ddpi_Error*         error);

Parameters

elf
Input. This accepts a Ddpi_Elf object.
md5_sig[16]
Input. This accepts a MD5 signature.
error
See The libddpi error parameter.

Return values

DW_DLV_OK
Returned upon successful assignment of the MD5 address.
DW_DLV_NO_ENTRY
Never returned.
DW_DLV_ERROR
This value is returned if:
  • elf is NULL.
  • The Ddpi_Access or Ddpi_Info object associated with elf is NULL.