Lines Matching full:hmac
6 * This is a host tool that is intended to be used to take the HMAC digest of
12 * Note that the peculiar way an HMAC is being used as a digest with a public
26 #include <openssl/hmac.h>
117 static void hmac_section(HMAC_CTX *hmac, const char *start, const char *end) in hmac_section() argument
122 HMAC_Update(hmac, start_addr, end_addr - start_addr); in hmac_section()
132 HMAC_CTX *hmac; in main() local
174 fprintf(stderr, "failed to locate HMAC key in binary\n"); in main()
180 fprintf(stderr, "failed to locate HMAC digest in binary\n"); in main()
184 hmac = HMAC_CTX_new(); in main()
185 HMAC_Init_ex(hmac, hmac_key, strlen(hmac_key), EVP_sha256(), NULL); in main()
187 hmac_section(hmac, "__fips140_text_start", "__fips140_text_end"); in main()
188 hmac_section(hmac, "__fips140_rodata_start", "__fips140_rodata_end"); in main()
190 HMAC_Final(hmac, dg, &dglen); in main()