Home
last modified time | relevance | path

Searched refs:OPENSSL_assert (Results 1 – 25 of 40) sorted by relevance

12

/external/openssl/crypto/evp/
Dbio_b64.c169 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_read()
172 OPENSSL_assert(ctx->buf_off+i < (int)sizeof(ctx->buf)); in b64_read()
392 OPENSSL_assert(ctx->buf_off < (int)sizeof(ctx->buf)); in b64_write()
393 OPENSSL_assert(ctx->buf_len <= (int)sizeof(ctx->buf)); in b64_write()
394 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_write()
404 OPENSSL_assert(i <= n); in b64_write()
406 OPENSSL_assert(ctx->buf_off <= (int)sizeof(ctx->buf)); in b64_write()
407 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_write()
424 OPENSSL_assert(ctx->tmp_len <= 3); in b64_write()
435 OPENSSL_assert(ctx->buf_len <= (int)sizeof(ctx->buf)); in b64_write()
[all …]
Devp_enc.c192 OPENSSL_assert(ctx->cipher->block_size == 1 in EVP_CipherInit_ex()
211 OPENSSL_assert(EVP_CIPHER_CTX_iv_length(ctx) <= in EVP_CipherInit_ex()
304 OPENSSL_assert(bl <= (int)sizeof(ctx->buf)); in EVP_EncryptUpdate()
354 OPENSSL_assert(b <= sizeof ctx->buf); in EVP_EncryptFinal_ex()
400 OPENSSL_assert(b <= sizeof ctx->final); in EVP_DecryptUpdate()
463 OPENSSL_assert(b <= sizeof ctx->final); in EVP_DecryptFinal_ex()
Dp5_crpt.c122 OPENSSL_assert(EVP_CIPHER_key_length(cipher) <= (int)sizeof(md_tmp)); in PKCS5_PBE_keyivgen()
124 OPENSSL_assert(EVP_CIPHER_iv_length(cipher) <= 16); in PKCS5_PBE_keyivgen()
Devp_key.c126 OPENSSL_assert(nkey <= EVP_MAX_KEY_LENGTH); in EVP_BytesToKey()
127 OPENSSL_assert(niv <= EVP_MAX_IV_LENGTH); in EVP_BytesToKey()
Devp_lib.c94 OPENSSL_assert(l <= sizeof(c->iv)); in EVP_CIPHER_get_asn1_iv()
112 OPENSSL_assert(j <= sizeof(c->iv)); in EVP_CIPHER_set_asn1_iv()
Dencode.c139 OPENSSL_assert(ctx->length <= (int)sizeof(ctx->enc_data)); in EVP_EncodeUpdate()
262 OPENSSL_assert(n < (int)sizeof(ctx->enc_data)); in EVP_DecodeUpdate()
De_rc2.c179 OPENSSL_assert(l <= sizeof(iv)); in rc2_get_asn1_type_and_iv()
Ddigest.c250 OPENSSL_assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE); in EVP_DigestFinal_ex()
Dp5_crpt2.c221 OPENSSL_assert(keylen <= sizeof key); in PKCS5_v2_PBE_keyivgen()
/external/openssl/crypto/x509v3/
Dv3_asid.c174 OPENSSL_assert((a->type == ASIdOrRange_id && a->u.id != NULL) || in ASIdOrRange_cmp()
178 OPENSSL_assert((b->type == ASIdOrRange_id && b->u.id != NULL) || in ASIdOrRange_cmp()
217 OPENSSL_assert((*choice)->u.inherit == NULL); in v3_asid_add_inherit()
252 OPENSSL_assert((*choice)->u.asIdsOrRanges == NULL); in v3_asid_add_id_or_range()
288 OPENSSL_assert(aor != NULL && min != NULL && max != NULL); in extract_min_max()
397 OPENSSL_assert(choice->type == ASIdentifierChoice_asIdsOrRanges); in ASIdentifierChoice_canonize()
415 OPENSSL_assert(ASN1_INTEGER_cmp(a_min, b_min) <= 0); in ASIdentifierChoice_canonize()
474 OPENSSL_assert(ASIdentifierChoice_is_canonical(choice)); /* Paranoia */ in ASIdentifierChoice_canonize()
711 OPENSSL_assert(chain != NULL && sk_X509_num(chain) > 0); in v3_asid_validate_path_internal()
712 OPENSSL_assert(ctx != NULL || ext != NULL); in v3_asid_validate_path_internal()
[all …]
Dv3_addr.c150 OPENSSL_assert(bs->length >= 0 && bs->length <= length); in addr_expand()
463 OPENSSL_assert(aor->u.addressRange == NULL); in make_addressRange()
532 OPENSSL_assert(f->addressFamily->data != NULL); in make_IPAddressFamily()
664 OPENSSL_assert(aor != NULL && min != NULL && max != NULL); in extract_min_max()
890 OPENSSL_assert(v3_addr_is_canonical(addr)); in v3_addr_canonize()
1177 OPENSSL_assert(chain != NULL && sk_X509_num(chain) > 0); in v3_addr_validate_path_internal()
1178 OPENSSL_assert(ctx != NULL || ext != NULL); in v3_addr_validate_path_internal()
1179 OPENSSL_assert(ctx == NULL || ctx->verify_cb != NULL); in v3_addr_validate_path_internal()
1192 OPENSSL_assert(x != NULL); in v3_addr_validate_path_internal()
1211 OPENSSL_assert(x != NULL); in v3_addr_validate_path_internal()
[all …]
/external/openssl/crypto/aes/
Daes_ige.c86 OPENSSL_assert(in && out && key && ivec); in AES_ige_encrypt()
87 OPENSSL_assert((AES_ENCRYPT == enc)||(AES_DECRYPT == enc)); in AES_ige_encrypt()
88 OPENSSL_assert((length%AES_BLOCK_SIZE) == 0); in AES_ige_encrypt()
227 OPENSSL_assert(in && out && key && ivec); in AES_bi_ige_encrypt()
228 OPENSSL_assert((AES_ENCRYPT == enc)||(AES_DECRYPT == enc)); in AES_bi_ige_encrypt()
229 OPENSSL_assert((length%AES_BLOCK_SIZE) == 0); in AES_bi_ige_encrypt()
/external/openssl/ssl/
Dd1_both.c141 OPENSSL_assert((msg_len) > 0); \
268 OPENSSL_assert(mtu > 0); /* should have something reasonable now */ in dtls1_do_write()
273 OPENSSL_assert(s->init_num == in dtls1_do_write()
314 OPENSSL_assert(s->init_off > DTLS1_HM_HEADER_LENGTH); in dtls1_do_write()
328 OPENSSL_assert(len >= DTLS1_HM_HEADER_LENGTH); in dtls1_do_write()
353 OPENSSL_assert(len == (unsigned int)ret); in dtls1_do_write()
798 OPENSSL_assert(i == DTLS1_HM_HEADER_LENGTH); in dtls1_get_message_fragment()
870 OPENSSL_assert(i == (int)frag_len); in dtls1_get_message_fragment()
912 OPENSSL_assert(i <= EVP_MAX_MD_SIZE); in dtls1_send_finished()
919 OPENSSL_assert(i <= EVP_MAX_MD_SIZE); in dtls1_send_finished()
[all …]
Dt1_reneg.c240 OPENSSL_assert(!expected_len || s->s3->previous_client_finished_len); in ssl_parse_serverhello_renegotiate_ext()
241 OPENSSL_assert(!expected_len || s->s3->previous_server_finished_len); in ssl_parse_serverhello_renegotiate_ext()
Ds2_enc.c100 OPENSSL_assert(s->s2->key_material_length <= sizeof s->s2->key_material); in ssl2_enc_init()
105 OPENSSL_assert(c->iv_len <= (int)sizeof(s->session->key_arg)); in ssl2_enc_init()
Ds3_both.c173 OPENSSL_assert(i <= EVP_MAX_MD_SIZE); in ssl3_send_finished()
180 OPENSSL_assert(i <= EVP_MAX_MD_SIZE); in ssl3_send_finished()
279 OPENSSL_assert(i <= EVP_MAX_MD_SIZE); in ssl3_get_finished()
286 OPENSSL_assert(i <= EVP_MAX_MD_SIZE); in ssl3_get_finished()
Ds2_lib.c487 OPENSSL_assert(s->session->master_key_length >= 0 in ssl2_generate_key_material()
528 OPENSSL_assert(error >= 0 && error <= (int)sizeof(buf)); in ssl2_write_error()
Dt1_enc.c169 OPENSSL_assert(chunk >= 0); in tls1_P_hash()
651 OPENSSL_assert(n >= 0); in tls1_enc()
665 OPENSSL_assert(n >= 0); in tls1_enc()
902 OPENSSL_assert(t >= 0); in tls1_mac()
937 OPENSSL_assert(t > 0); in tls1_mac()
Dd1_pkt.c438 OPENSSL_assert(t >= 0); in dtls1_process_record()
1346 OPENSSL_assert(len <= SSL3_RT_MAX_PLAIN_LENGTH); in dtls1_write_bytes()
1367 OPENSSL_assert(0); /* XDTLS: want to see if we ever get here */ in do_dtls1_write()
/external/openssl/apps/
Ds_cb.c736 OPENSSL_assert(0); in generate_cookie_callback()
768 OPENSSL_assert(0); in generate_cookie_callback()
817 OPENSSL_assert(0); in verify_cookie_callback()
849 OPENSSL_assert(0); in verify_cookie_callback()
/external/openssl/crypto/hmac/
Dhmac.c82 OPENSSL_assert(j <= (int)sizeof(ctx->key)); in HMAC_Init_ex()
95 OPENSSL_assert(len>=0 && len<=(int)sizeof(ctx->key)); in HMAC_Init_ex()
/external/openssl/crypto/jpake/
Djpake.c136 OPENSSL_assert(l <= 0xffff); in hashlength()
174 OPENSSL_assert(!BN_is_zero(p->zkpx.gr)); in zkp_hash()
/external/openssl/crypto/conf/
Dconf_api.c289 OPENSSL_assert(vv == NULL); in _CONF_new_section()
/external/openssl/crypto/pem/
Dpem_lib.c392 OPENSSL_assert(enc->iv_len <= (int)sizeof(iv)); in PEM_ASN1_write_bio()
401 OPENSSL_assert(strlen(objstr)+23+2*enc->iv_len+13 <= sizeof buf); in PEM_ASN1_write_bio()
Dpem_info.c367 OPENSSL_assert(strlen(objstr)+23+2*enc->iv_len+13 <= sizeof buf); in PEM_X509_INFO_write_bio()

12