34 #ifndef SDLR_ROM_CHECKSUM_TOP_H_ 35 #define SDLR_ROM_CHECKSUM_TOP_H_ 38 #include <tistdtypes.h> 40 #if defined(SOC_J721E)|| defined(SOC_J7200) || defined (SOC_J721S2) || defined (SOC_J784S4) 41 #include <src/ip/rom_checksum/sdl_ip_rom_checksum.h> 160 void SDL_memcpy(
void *dest,
void *src, uint32_t n);
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.
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.
void SDL_ROM_Checksum_init(SDL_ROM_Checksum_obj *const md)
This API will Initialize the buffer where hash value to be stored.
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 ...
This structure is used to store the resultant value of ROM Checksum.
Definition: sdl_ip_rom_checksum.h:89
uint32_t curlen
Definition: sdl_ip_rom_checksum.h:98
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.
uint64_t length
Definition: sdl_ip_rom_checksum.h:92
void SDL_memcpy(void *dest, void *src, uint32_t n)
This API will copy source pointer data to destination pointer.