Lines Matching refs:CHK
1120 CHK(cipher_info != NULL); in mbedtls_test_ssl_build_transforms()
1121 CHK(cipher_info->iv_size <= 16); in mbedtls_test_ssl_build_transforms()
1122 CHK(cipher_info->key_bitlen % 8 == 0); in mbedtls_test_ssl_build_transforms()
1129 CHK((key0 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms()
1130 CHK((key1 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms()
1136 CHK(mbedtls_cipher_setup(&t_in->cipher_ctx_enc, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1137 CHK(mbedtls_cipher_setup(&t_in->cipher_ctx_dec, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1138 CHK(mbedtls_cipher_setup(&t_out->cipher_ctx_enc, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1139 CHK(mbedtls_cipher_setup(&t_out->cipher_ctx_dec, cipher_info) == 0); in mbedtls_test_ssl_build_transforms()
1143 CHK(mbedtls_cipher_set_padding_mode(&t_in->cipher_ctx_enc, in mbedtls_test_ssl_build_transforms()
1145 CHK(mbedtls_cipher_set_padding_mode(&t_in->cipher_ctx_dec, in mbedtls_test_ssl_build_transforms()
1147 CHK(mbedtls_cipher_set_padding_mode(&t_out->cipher_ctx_enc, in mbedtls_test_ssl_build_transforms()
1149 CHK(mbedtls_cipher_set_padding_mode(&t_out->cipher_ctx_dec, in mbedtls_test_ssl_build_transforms()
1154 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_enc, key0, in mbedtls_test_ssl_build_transforms()
1158 CHK(mbedtls_cipher_setkey(&t_in->cipher_ctx_dec, key1, in mbedtls_test_ssl_build_transforms()
1162 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_enc, key1, in mbedtls_test_ssl_build_transforms()
1166 CHK(mbedtls_cipher_setkey(&t_out->cipher_ctx_dec, key0, in mbedtls_test_ssl_build_transforms()
1178 CHK(md_info != NULL); in mbedtls_test_ssl_build_transforms()
1181 CHK(maclen != 0); in mbedtls_test_ssl_build_transforms()
1183 CHK((md0 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms()
1184 CHK((md1 = mbedtls_calloc(1, maclen)) != NULL); in mbedtls_test_ssl_build_transforms()
1191 CHK(alg != 0); in mbedtls_test_ssl_build_transforms()
1205 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1209 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1222 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1226 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
1230 CHK(mbedtls_md_setup(&t_out->md_ctx_enc, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1231 CHK(mbedtls_md_setup(&t_out->md_ctx_dec, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1232 CHK(mbedtls_md_setup(&t_in->md_ctx_enc, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1233 CHK(mbedtls_md_setup(&t_in->md_ctx_dec, md_info, 1) == 0); in mbedtls_test_ssl_build_transforms()
1235 CHK(mbedtls_md_hmac_starts(&t_in->md_ctx_enc, in mbedtls_test_ssl_build_transforms()
1237 CHK(mbedtls_md_hmac_starts(&t_in->md_ctx_dec, in mbedtls_test_ssl_build_transforms()
1239 CHK(mbedtls_md_hmac_starts(&t_out->md_ctx_enc, in mbedtls_test_ssl_build_transforms()
1241 CHK(mbedtls_md_hmac_starts(&t_out->md_ctx_dec, in mbedtls_test_ssl_build_transforms()