Lines Matching refs:CHK
72 #define CHK(expr) \ macro
103 CHK(mbedtls_md_setup(&ctx, info, 1)); in hmac_demo()
104 CHK(mbedtls_md_hmac_starts(&ctx, key_bytes, sizeof(key_bytes))); in hmac_demo()
107 CHK(mbedtls_md_hmac_update(&ctx, msg1_part1, sizeof(msg1_part1))); in hmac_demo()
108 CHK(mbedtls_md_hmac_update(&ctx, msg1_part2, sizeof(msg1_part2))); in hmac_demo()
109 CHK(mbedtls_md_hmac_finish(&ctx, out)); in hmac_demo()
113 CHK(mbedtls_md_hmac_reset(&ctx)); // prepare for new operation in hmac_demo()
114 CHK(mbedtls_md_hmac_update(&ctx, msg2_part1, sizeof(msg2_part1))); in hmac_demo()
115 CHK(mbedtls_md_hmac_update(&ctx, msg2_part2, sizeof(msg2_part2))); in hmac_demo()
116 CHK(mbedtls_md_hmac_finish(&ctx, out)); in hmac_demo()
130 CHK(hmac_demo()); in main()