Lines Matching refs:CHK

1299     CHK((key0 = mbedtls_calloc(1, keylen + 1)) != NULL);  in mbedtls_test_ssl_build_transforms()
1300 CHK((key1 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms()
1307 CHK(cipher_info != NULL); in mbedtls_test_ssl_build_transforms()
1308 CHK(mbedtls_cipher_info_get_iv_size(cipher_info) <= 16); in mbedtls_test_ssl_build_transforms()
1309 CHK(mbedtls_cipher_info_get_key_bitlen(cipher_info) % 8 == 0); in mbedtls_test_ssl_build_transforms()
1312 CHK(mbedtls_cipher_setup(&t_in->cipher_ctx_enc, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1313 CHK(mbedtls_cipher_setup(&t_in->cipher_ctx_dec, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1314 CHK(mbedtls_cipher_setup(&t_out->cipher_ctx_enc, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1315 CHK(mbedtls_cipher_setup(&t_out->cipher_ctx_dec, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1319 CHK(mbedtls_cipher_set_padding_mode(&t_in->cipher_ctx_enc, in mbedtls_test_ssl_build_transforms()
1321 CHK(mbedtls_cipher_set_padding_mode(&t_in->cipher_ctx_dec, in mbedtls_test_ssl_build_transforms()
1323 CHK(mbedtls_cipher_set_padding_mode(&t_out->cipher_ctx_enc, in mbedtls_test_ssl_build_transforms()
1325 CHK(mbedtls_cipher_set_padding_mode(&t_out->cipher_ctx_dec, in mbedtls_test_ssl_build_transforms()
1330 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_enc, key0, in mbedtls_test_ssl_build_transforms()
1334 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_dec, key1, in mbedtls_test_ssl_build_transforms()
1338 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_enc, key1, in mbedtls_test_ssl_build_transforms()
1342 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_dec, key0, in mbedtls_test_ssl_build_transforms()
1354 CHK(md_info != NULL); in mbedtls_test_ssl_build_transforms()
1357 CHK(maclen != 0); in mbedtls_test_ssl_build_transforms()
1359 CHK((md0 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms()
1360 CHK((md1 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms()
1367 CHK(alg != 0); in mbedtls_test_ssl_build_transforms()
1381 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1385 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1398 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1402 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1406 CHK(mbedtls_md_setup(&t_out->md_ctx_enc, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1407 CHK(mbedtls_md_setup(&t_out->md_ctx_dec, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1408 CHK(mbedtls_md_setup(&t_in->md_ctx_enc, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1409 CHK(mbedtls_md_setup(&t_in->md_ctx_dec, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1411 CHK(mbedtls_md_hmac_starts(&t_in->md_ctx_enc, in mbedtls_test_ssl_build_transforms()
1413 CHK(mbedtls_md_hmac_starts(&t_in->md_ctx_dec, in mbedtls_test_ssl_build_transforms()
1415 CHK(mbedtls_md_hmac_starts(&t_out->md_ctx_enc, in mbedtls_test_ssl_build_transforms()
1417 CHK(mbedtls_md_hmac_starts(&t_out->md_ctx_dec, in mbedtls_test_ssl_build_transforms()