Home
last modified time | relevance | path

Searched refs:hmac (Results 1 – 2 of 2) sorted by relevance

/u-boot/board/gdsys/a38x/
A Dkeyprogram.c111 struct key_program *result = NULL, *hmac = NULL; in parse_and_check_keyprog() local
120 if (extract_subprogram(&progdata, MAGIC_HMAC, &hmac)) in parse_and_check_keyprog()
123 free(hmac); in parse_and_check_keyprog()
/u-boot/board/gdsys/p1022/
A Dcontrolcenterd-id.c761 static int check_hmac(struct key_program *hmac, in check_hmac() argument
767 type = get_unaligned_be32(hmac->code); in check_hmac()
778 return memcmp(computed_hmac, hmac->code + 4, 20); in check_hmac()
800 struct key_program *result = NULL, *hmac = NULL; in load_sd_key_program() local
855 if (!hmac) in load_sd_key_program()
857 *hmac = header; in load_sd_key_program()
859 if (ccdm_mmc_read(mmc, code_offset, hmac->code, in load_sd_key_program()
860 hmac->code_size) < 0) in load_sd_key_program()
862 if (verify_program(hmac)) in load_sd_key_program()
877 if (hmac) in load_sd_key_program()
[all …]

Completed in 5 milliseconds