Lines Matching defs:CHK
106 #define CHK(expr) \
152 CHK(mbedtls_cipher_setup(ctx,
157 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT));
200 CHK(mbedtls_cipher_set_iv(ctx, iv, iv_len));
201 CHK(mbedtls_cipher_reset(ctx));
202 CHK(mbedtls_cipher_update_ad(ctx, ad, ad_len));
203 CHK(mbedtls_cipher_update(ctx, part1, part1_len, p, &olen));
205 CHK(mbedtls_cipher_update(ctx, part2, part2_len, p, &olen));
207 CHK(mbedtls_cipher_finish(ctx, p, &olen));
209 CHK(mbedtls_cipher_write_tag(ctx, p, tag_len));
231 CHK(aead_prepare(info, &ctx, &tag_len));
235 CHK(aead_encrypt(&ctx, tag_len,
239 CHK(aead_encrypt(&ctx, tag_len,
265 CHK(aead_demo(argv[1]));