AM64x MCU+ SDK  09.02.00

Introduction

Functions

void SDL_ROM_Checksum_init (SDL_ROM_Checksum_obj *const md)
 This API will Initialize the buffer where hash value to be stored. More...
 
int32_t SDL_ROM_Checksum_process (SDL_ROM_Checksum_obj *md, uint8_t *in, uint32_t inlen)
 This API is used to process the ROM region data. More...
 
void SDL_ROM_Checksum_compress (SDL_ROM_Checksum_obj *md, uint8_t *buf)
 This API is used to compress the data of ROM region and store the result in md->state. More...
 
int32_t SDL_ROM_Checksum_done (SDL_ROM_Checksum_obj *md)
 This API will increase our data length with the help of padding ( because our algorithm can compress only 1024-bit length of data at a time) and will compress then will store final has value in md->state. More...
 
int32_t SDL_ROM_Checksum_compareResult (uint64_t buflen, SDL_ROM_Checksum_obj *md, uint64_t *golden_value)
 This API will compare the resultant hash value of golden value. More...
 
void SDL_memcpy (void *dest, void *src, uint32_t n)
 This API will copy source pointer data to destination pointer. More...
 

Function Documentation

◆ SDL_ROM_Checksum_init()

void SDL_ROM_Checksum_init ( SDL_ROM_Checksum_obj *const  md)

This API will Initialize the buffer where hash value to be stored.

◆ SDL_ROM_Checksum_process()

int32_t SDL_ROM_Checksum_process ( SDL_ROM_Checksum_obj md,
uint8_t *  in,
uint32_t  inlen 
)

This API is used to process the ROM region data.

Returns
status Success of the ROM Checksum. Success: SDL_PASS. Fail : SDL_EFAIL.

◆ SDL_ROM_Checksum_compress()

void SDL_ROM_Checksum_compress ( SDL_ROM_Checksum_obj md,
uint8_t *  buf 
)

This API is used to compress the data of ROM region and store the result in md->state.

◆ SDL_ROM_Checksum_done()

int32_t SDL_ROM_Checksum_done ( SDL_ROM_Checksum_obj md)

This API will increase our data length with the help of padding ( because our algorithm can compress only 1024-bit length of data at a time) and will compress then will store final has value in md->state.

Returns
status Success of the ROM Checksum. Success: SDL_PASS. Fail : SDL_EFAIL.

◆ SDL_ROM_Checksum_compareResult()

int32_t SDL_ROM_Checksum_compareResult ( uint64_t  buflen,
SDL_ROM_Checksum_obj md,
uint64_t *  golden_value 
)

This API will compare the resultant hash value of golden value.

Returns
status Success of the ROM Checksum. Success: SDL_PASS. Fail : SDL_EFAIL.

◆ SDL_memcpy()

void SDL_memcpy ( void *  dest,
void *  src,
uint32_t  n 
)

This API will copy source pointer data to destination pointer.