| /freebsd/crypto/openssl/crypto/cmp/ |
| H A D | cmp_hdr.c | 25 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set_pvno() 34 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_get_pvno() 43 if (!ossl_assert(hdr != NULL) in ossl_cmp_hdr_get_protection_nid() 60 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_get0_senderNonce() 98 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set1_sender() 105 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set1_recipient() 112 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_update_messageTime() 137 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set1_senderKID() 145 if (!ossl_assert(hdr != NULL && text != NULL)) in ossl_cmp_hdr_push0_freeText() 157 if (!ossl_assert(hdr != NULL && text != NULL)) in ossl_cmp_hdr_push1_freeText() [all …]
|
| H A D | cmp_msg.c | 113 if (!ossl_assert(msg != NULL && msg->body != NULL)) in ossl_cmp_msg_set_bodytype() 122 if (!ossl_assert(msg != NULL && msg->body != NULL)) in OSSL_CMP_MSG_get_bodytype() 162 if (!ossl_assert(pexts != NULL)) /* pointer to var must not be NULL */ in add1_extension() 189 if (!ossl_assert(ctx != NULL)) in ossl_cmp_msg_create() 412 if (!ossl_assert(ctx != NULL)) in ossl_cmp_certreq_new() 523 if (!ossl_assert(ctx != NULL && si != NULL)) in ossl_cmp_certrep_new() 605 if (!ossl_assert(ctx != NULL in ossl_cmp_rr_new() 666 if (!ossl_assert(ctx != NULL && si != NULL)) in ossl_cmp_rp_new() 708 if (!ossl_assert(ctx != NULL)) in ossl_cmp_pkiconf_new() 726 if (!ossl_assert(msg != NULL && itav != NULL)) in ossl_cmp_msg_gen_push0_ITAV() [all …]
|
| H A D | cmp_status.c | 35 if (!ossl_assert(si != NULL && si->status != NULL)) in ossl_cmp_pkisi_get_status() 67 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get0_statusString() 77 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get_pkifailureinfo() 154 if (!ossl_assert(si != NULL && si->failInfo != NULL)) in ossl_cmp_pkisi_check_pkifailureinfo()
|
| H A D | cmp_protect.c | 42 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_calc_protection() 135 if (!ossl_assert(ctx != NULL)) in ossl_cmp_set_own_chain() 155 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_add_extraCerts() 201 if (!ossl_assert(ctx != NULL)) in pbmac_algor() 235 if (!ossl_assert(ctx != NULL && msg != NULL)) in ossl_cmp_msg_protect()
|
| H A D | cmp_server.c | 180 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in delayed_delivery() 226 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_cert_request() 327 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_rr() 370 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_genm() 387 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_error() 407 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_certConf() 462 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in process_non_polling_request() 522 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_pollReq() 564 if (!ossl_assert(ctx != NULL && req != NULL)) in unprotected_exception()
|
| /freebsd/crypto/openssl/ssl/record/methods/ |
| H A D | ktls_meth.c | 188 if (!ossl_assert(EVP_GCM_TLS_FIXED_IV_LEN == EVP_CCM_TLS_FIXED_IV_LEN) in ktls_configure_crypto() 189 || !ossl_assert(EVP_GCM_TLS_EXPLICIT_IV_LEN in ktls_configure_crypto() 193 if (!ossl_assert(ivlen == EVP_GCM_TLS_FIXED_IV_LEN)) in ktls_configure_crypto() 205 if (!ossl_assert(ivlen == EVP_GCM_TLS_FIXED_IV_LEN + EVP_GCM_TLS_EXPLICIT_IV_LEN)) in ktls_configure_crypto() 215 if (!ossl_assert(TLS_CIPHER_AES_GCM_128_SALT_SIZE in ktls_configure_crypto() 217 || !ossl_assert(TLS_CIPHER_AES_GCM_128_IV_SIZE in ktls_configure_crypto() 232 if (!ossl_assert(TLS_CIPHER_AES_GCM_256_SALT_SIZE in ktls_configure_crypto() 234 || !ossl_assert(TLS_CIPHER_AES_GCM_256_IV_SIZE in ktls_configure_crypto() 250 if (!ossl_assert(TLS_CIPHER_AES_CCM_128_SALT_SIZE in ktls_configure_crypto() 252 || !ossl_assert(TLS_CIPHER_AES_CCM_128_IV_SIZE in ktls_configure_crypto() [all …]
|
| H A D | ssl3_cbc.c | 167 if (!ossl_assert(data_plus_mac_plus_padding_size < 1024 * 1024)) in ssl3_cbc_digest_record() 223 return ossl_assert(0); in ssl3_cbc_digest_record() 226 if (!ossl_assert(md_length_size <= MAX_HASH_BIT_COUNT_BYTES) in ssl3_cbc_digest_record() 227 || !ossl_assert(md_block_size <= MAX_HASH_BLOCK_SIZE) in ssl3_cbc_digest_record() 228 || !ossl_assert(md_size <= EVP_MAX_MD_SIZE)) in ssl3_cbc_digest_record() 328 if (!ossl_assert(mac_secret_length <= sizeof(hmac_pad))) in ssl3_cbc_digest_record()
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | packet.c | 49 if (!ossl_assert(pkt->subs != NULL && len != 0)) in WPACKET_reserve_bytes() 135 if (!ossl_assert(buf != NULL && len > 0)) in WPACKET_init_static_len() 149 if (!ossl_assert(buf != NULL && len > 0)) in WPACKET_init_der() 163 if (!ossl_assert(buf != NULL)) in WPACKET_init_len() 202 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_flags() 324 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_fill_lengths() 373 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_start_sub_packet_len__() 411 if (!ossl_assert(size <= sizeof(uint64_t)) in WPACKET_put_bytes__() 425 if (!ossl_assert(pkt->subs != NULL)) in WPACKET_set_max_size() 490 if (!ossl_assert(written != NULL)) in WPACKET_get_total_written() [all …]
|
| H A D | passphrase.c | 37 if (!ossl_assert(data != NULL && passphrase != NULL)) { in ossl_pw_set_passphrase() 54 if (!ossl_assert(data != NULL && cb != NULL)) { in ossl_pw_set_pem_password_cb() 68 if (!ossl_assert(data != NULL && cb != NULL)) { in ossl_pw_set_ossl_passphrase_cb() 82 if (!ossl_assert(data != NULL && ui_method != NULL)) { in ossl_pw_set_ui_method() 123 if (!ossl_assert(pass != NULL && pass_size != 0 && pass_len != NULL)) { in do_ui_passphrase()
|
| H A D | threads_none.c | 115 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_read_lock() 122 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_write_lock() 129 if (!ossl_assert(*(unsigned int *)lock == 1)) in CRYPTO_THREAD_unlock()
|
| H A D | core_fetch.c | 64 if (!ossl_assert(result != NULL)) { in ossl_method_construct_precondition() 91 if (!ossl_assert(result != NULL)) { in ossl_method_construct_postcondition()
|
| /freebsd/crypto/openssl/crypto/encode_decode/ |
| H A D | encoder_lib.c | 172 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_selection() 177 if (!ossl_assert(selection != 0)) { in OSSL_ENCODER_CTX_set_selection() 189 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_type != NULL)) { in OSSL_ENCODER_CTX_set_output_type() 201 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_structure != NULL)) { in OSSL_ENCODER_CTX_set_output_structure() 219 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_instance_new() 314 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) { in OSSL_ENCODER_CTX_add_encoder() 355 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_construct() 366 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_construct_data() 377 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_cleanup() 613 if (!ossl_assert(data->running_output != NULL)) { in encoder_process()
|
| H A D | decoder_lib.c | 170 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_selection() 186 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_input_type() 202 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_input_structure() 221 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_instance_new_forprov() 251 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_instance_new() 388 if (!ossl_assert(ctx != NULL) || !ossl_assert(decoder != NULL)) { in OSSL_DECODER_CTX_add_decoder() 588 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_add_extra() 690 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_construct() 701 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_construct_data() 712 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_cleanup() [all …]
|
| H A D | encoder_meth.c | 467 if (!ossl_assert(encoder != NULL)) { in OSSL_ENCODER_get0_provider() 477 if (!ossl_assert(encoder != NULL)) { in OSSL_ENCODER_get0_properties() 488 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_parsed_properties() 498 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_get_number() 623 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_params()
|
| H A D | decoder_meth.c | 462 if (!ossl_assert(decoder != NULL)) { in OSSL_DECODER_get0_provider() 472 if (!ossl_assert(decoder != NULL)) { in OSSL_DECODER_get0_properties() 483 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_parsed_properties() 493 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_get_number() 643 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_params()
|
| /freebsd/crypto/openssl/crypto/bio/ |
| H A D | bss_dgram_pair.c | 90 if (!ossl_assert(num_bytes <= r->len - r->idx[idx])) in ring_buf_push_pop() 96 if (!ossl_assert(idx != 0 ? num_bytes <= r->count in ring_buf_push_pop() 326 if (!ossl_assert(b != NULL)) in dgram_pair_free() 358 if (!ossl_assert(b1 != NULL && b2 != NULL)) { in dgram_pair_ctrl_make_bio_pair() 373 if (!ossl_assert(b1->req_buf_len >= MIN_BUF_LEN in dgram_pair_ctrl_make_bio_pair() 420 if (!ossl_assert(b2->peer == bio1)) in dgram_pair_ctrl_destroy_bio_pair() 437 if (!ossl_assert(b != NULL)) in dgram_pair_ctrl_eof() 447 if (!ossl_assert(peerb != NULL)) in dgram_pair_ctrl_eof() 520 if (!ossl_assert(l == 0 || l == sizeof(hdr))) in dgram_pair_ctrl_pending() 655 if (!ossl_assert(b != NULL)) in dgram_mem_ctrl() [all …]
|
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_obj.c | 26 if (!ossl_assert(obj != NULL && !obj->init_done && SSL_TYPE_IS_QUIC(type) in ossl_quic_obj_init() 31 if (!ossl_assert(!is_event_leader || parent_obj == NULL)) in ossl_quic_obj_init() 62 if (!ossl_assert(p == obj || p->init_done)) in obj_update_cache() 65 if (!ossl_assert(p != NULL)) in obj_update_cache()
|
| H A D | quic_record_shared.c | 26 if (!ossl_assert(enc_level < QUIC_ENC_LEVEL_NUM)) in ossl_qrl_enc_level_set_get() 69 if (!ossl_assert(el != NULL && keyslot < 2)) in ossl_qrl_enc_level_set_has_keyslot() 115 if (!ossl_assert(el != NULL in el_setup_keyslot() 169 if (!ossl_assert(iv_len == (size_t)EVP_CIPHER_get_iv_length(cipher)) in el_setup_keyslot() 170 || !ossl_assert(key_len == (size_t)EVP_CIPHER_get_key_length(cipher))) { in el_setup_keyslot() 352 if (el == NULL || !ossl_assert(enc_level == QUIC_ENC_LEVEL_1RTT)) { in ossl_qrl_enc_level_set_key_update() 406 if (el == NULL || !ossl_assert(enc_level == QUIC_ENC_LEVEL_1RTT)) { in ossl_qrl_enc_level_set_key_update_done() 428 if (el == NULL || !ossl_assert(enc_level == QUIC_ENC_LEVEL_1RTT)) { in ossl_qrl_enc_level_set_key_cooldown_done()
|
| H A D | quic_tls.c | 179 if (!ossl_assert("Should not happen" == NULL)) in quic_new_record_layer() 252 if (!ossl_assert(numtempl == 1)) { in quic_write_records() 330 if (!ossl_assert(consumed + rl->written < template->buflen)) { in quic_write_records() 422 if (!ossl_assert(rl->recread > 0) in quic_release_record() 423 || !ossl_assert(rl->recunreleased <= rl->recread) in quic_release_record() 424 || !ossl_assert(rl == rechandle) in quic_release_record() 425 || !ossl_assert(length <= rl->recunreleased)) { in quic_release_record() 450 if (!ossl_assert(version == TLS1_3_VERSION)) { in quic_set_protocol_version() 554 return (size_t)ossl_assert(0); in quic_app_data_pending() 560 return (size_t)ossl_assert(0); in quic_get_max_record_overhead() [all …]
|
| H A D | quic_rstream.c | 101 if (!ossl_assert(data != NULL)) in read_internal() 111 if (!ossl_assert(data != NULL) || !ossl_assert(max_len > l)) in read_internal() 207 if (!ossl_assert(*fin)) in ossl_quic_rstream_get_record() 218 if (!ossl_assert(record_ != NULL)) in ossl_quic_rstream_get_record()
|
| H A D | quic_sf_list.c | 121 if (!ossl_assert(sf != NULL)) in ossl_sframe_list_insert() 199 || !ossl_assert(start < sf->range.end)) { in ossl_sframe_list_peek() 223 if (!ossl_assert(limit >= fl->offset) in ossl_sframe_list_drop_frames() 224 || !ossl_assert(fl->tail == NULL in ossl_sframe_list_drop_frames() 226 || !ossl_assert(fl->tail != NULL in ossl_sframe_list_drop_frames()
|
| /freebsd/crypto/openssl/providers/fips/ |
| H A D | fipsindicator.c | 37 if (!ossl_assert(id < OSSL_FIPS_IND_SETTABLE_MAX)) in ossl_FIPS_IND_set_settable() 39 if (!ossl_assert(state == OSSL_FIPS_IND_STATE_STRICT in ossl_FIPS_IND_set_settable() 47 if (!ossl_assert(id < OSSL_FIPS_IND_SETTABLE_MAX)) in ossl_FIPS_IND_get_settable()
|
| /freebsd/crypto/openssl/crypto/property/ |
| H A D | defn_cache.c | 74 if (!ossl_assert(property_defns != NULL) || !ossl_lib_ctx_read_lock(ctx)) in ossl_prop_defn_get() 80 if (r == NULL || !ossl_assert(r->defn != NULL)) in ossl_prop_defn_get() 126 if (!ossl_assert(old == NULL)) in ossl_prop_defn_set()
|
| /freebsd/crypto/openssl/crypto/rand/ |
| H A D | rand_uniform.c | 33 if (!ossl_assert(upper > 0)) { in ossl_rand_uniform_uint32() 104 if (!ossl_assert(lower < upper)) { in ossl_rand_range_uint32()
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | v3_asid.c | 226 if (!ossl_assert(sk_ASIdOrRange_push((*choice)->u.asIdsOrRanges, aor))) in X509v3_asid_add_id_or_range() 241 if (!ossl_assert(aor != NULL)) in extract_min_max() 393 if (!ossl_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0)) in ASIdentifierChoice_canonize() 473 if (!ossl_assert(ASIdentifierChoice_is_canonical(choice))) in ASIdentifierChoice_canonize() 727 if (!ossl_assert(chain != NULL && sk_X509_num(chain) > 0) in asid_validate_path_internal() 728 || !ossl_assert(ctx != NULL || ext != NULL) in asid_validate_path_internal() 729 || !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) { in asid_validate_path_internal() 778 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal() 823 if (!ossl_assert(x != NULL)) { in asid_validate_path_internal()
|