Home
last modified time | relevance | path

Searched refs:OPENSSL_malloc (Results 1 – 25 of 124) sorted by relevance

12345

/external/boringssl/src/crypto/x509/
Dx509spki.c92 if (!(spki_der = OPENSSL_malloc(spki_len))) { in NETSCAPE_SPKI_b64_decode()
121 der_spki = OPENSSL_malloc(der_len); in NETSCAPE_SPKI_b64_encode()
126 b64_str = OPENSSL_malloc(b64_len); in NETSCAPE_SPKI_b64_encode()
Dby_dir.c148 if ((a = (BY_DIR *)OPENSSL_malloc(sizeof(BY_DIR))) == NULL) in new_dir()
229 ent = OPENSSL_malloc(sizeof(BY_DIR_ENTRY)); in add_cert_dir()
234 ent->dir = OPENSSL_malloc(len + 1); in add_cert_dir()
415 hent = OPENSSL_malloc(sizeof(BY_DIR_HASH)); in get_cert_by_subject()
Dx_info.c68 ret = (X509_INFO *)OPENSSL_malloc(sizeof(X509_INFO)); in X509_INFO_new()
Dx_pkey.c71 X509_PKEY *ret = OPENSSL_malloc(sizeof(X509_PKEY)); in X509_PKEY_new()
/external/boringssl/src/crypto/
Dmem.c105 void *OPENSSL_malloc(size_t size) { in OPENSSL_malloc() function
132 return OPENSSL_malloc(new_size); in OPENSSL_realloc()
140 void *ret = OPENSSL_malloc(new_size); in OPENSSL_realloc()
215 char *ret = OPENSSL_malloc(len); in OPENSSL_strdup()
/external/boringssl/src/crypto/pool/
Dpool.c43 CRYPTO_BUFFER_POOL *pool = OPENSSL_malloc(sizeof(CRYPTO_BUFFER_POOL)); in CRYPTO_BUFFER_POOL_new()
96 CRYPTO_BUFFER *const buf = OPENSSL_malloc(sizeof(CRYPTO_BUFFER)); in CRYPTO_BUFFER_new()
141 CRYPTO_BUFFER *const buf = OPENSSL_malloc(sizeof(CRYPTO_BUFFER)); in CRYPTO_BUFFER_alloc()
147 buf->data = OPENSSL_malloc(len); in CRYPTO_BUFFER_alloc()
/external/boringssl/src/crypto/asn1/
Da_object.c82 if ((p = allocated = OPENSSL_malloc(objsize)) == NULL) { in i2d_ASN1_OBJECT()
115 p = OPENSSL_malloc(i + 1); in i2a_ASN1_OBJECT()
203 data = (unsigned char *)OPENSSL_malloc(length); in c2i_ASN1_OBJECT()
234 ret = (ASN1_OBJECT *)OPENSSL_malloc(sizeof(ASN1_OBJECT)); in ASN1_OBJECT_new()
Dtasn_new.c157 *pval = OPENSSL_malloc(it->size); in asn1_item_ex_combine_new()
182 *pval = OPENSSL_malloc(it->size); in asn1_item_ex_combine_new()
348 typ = OPENSSL_malloc(sizeof(ASN1_TYPE)); in ASN1_primitive_new()
Da_bitstr.c169 s = (unsigned char *)OPENSSL_malloc((int)len); in c2i_ASN1_BIT_STRING()
218 c = (unsigned char *)OPENSSL_malloc(w + 1); in ASN1_BIT_STRING_set_bit()
/external/boringssl/src/crypto/buf/
Dbuf.c70 ret = OPENSSL_malloc(sizeof(BUF_MEM)); in BUF_MEM_new()
184 ret = OPENSSL_malloc(alloc_size); in BUF_strndup()
223 void *ret = OPENSSL_malloc(size); in BUF_memdup()
/external/boringssl/src/include/openssl/
Dmem.h79 OPENSSL_EXPORT void *OPENSSL_malloc(size_t size);
135 #define CRYPTO_malloc OPENSSL_malloc
/external/boringssl/src/crypto/lhash/
Dlhash.c96 _LHASH *ret = OPENSSL_malloc(sizeof(_LHASH)); in lh_new()
103 ret->buckets = OPENSSL_malloc(sizeof(LHASH_ITEM *) * ret->num_buckets); in lh_new()
204 new_buckets = OPENSSL_malloc(alloc_size); in lh_rebucket()
275 item = OPENSSL_malloc(sizeof(LHASH_ITEM)); in lh_insert()
/external/iperf3/src/
Diperf_auth.c219 rsa_buffer = OPENSSL_malloc(keysize * 2); in encrypt_rsa_message()
220 *encryptedtext = (unsigned char*)OPENSSL_malloc(keysize); in encrypt_rsa_message()
241 rsa_buffer = OPENSSL_malloc(keysize * 2); in decrypt_rsa_message()
242 *plaintext = (unsigned char*)OPENSSL_malloc(keysize); in decrypt_rsa_message()
/external/boringssl/src/crypto/fipsmodule/digest/
Ddigest.c83 EVP_MD_CTX *ctx = OPENSSL_malloc(sizeof(EVP_MD_CTX)); in EVP_MD_CTX_new()
147 tmp_buf = OPENSSL_malloc(in->digest->ctx_size); in EVP_MD_CTX_copy_ex()
192 uint8_t *md_data = OPENSSL_malloc(type->ctx_size); in EVP_DigestInit_ex()
/external/boringssl/src/crypto/err/
Derr.c205 state = OPENSSL_malloc(sizeof(ERR_STATE)); in err_get_state()
673 buf = OPENSSL_malloc(alloced + 1); in err_add_error_vdata()
727 buf = OPENSSL_malloc(buf_len + 1); in ERR_add_error_dataf()
808 ERR_SAVE_STATE *ret = OPENSSL_malloc(sizeof(ERR_SAVE_STATE)); in ERR_save_state()
818 ret->errors = OPENSSL_malloc(num_errors * sizeof(struct err_error_st)); in ERR_save_state()
/external/boringssl/src/crypto/evp/
Dprint.c155 m = (uint8_t *)OPENSSL_malloc(buf_len + 10); in do_rsa_print()
248 m = (uint8_t *)OPENSSL_malloc(buf_len + 10); in do_dsa_print()
326 pub_key_bytes = OPENSSL_malloc(pub_key_bytes_len); in do_EC_KEY_print()
353 if ((buffer = OPENSSL_malloc(buf_len)) == NULL) { in do_EC_KEY_print()
Dp_ed25519_asn1.c37 ED25519_KEY *key = OPENSSL_malloc(sizeof(ED25519_KEY)); in ed25519_set_priv_raw()
60 ED25519_KEY *key = OPENSSL_malloc(sizeof(ED25519_KEY)); in ed25519_set_pub_raw()
Dp_x25519_asn1.c38 X25519_KEY *key = OPENSSL_malloc(sizeof(X25519_KEY)); in x25519_set_priv_raw()
59 X25519_KEY *key = OPENSSL_malloc(sizeof(X25519_KEY)); in x25519_set_pub_raw()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c88 RSA *rsa = OPENSSL_malloc(sizeof(RSA)); in RSA_new_method()
484 signed_msg = OPENSSL_malloc(signed_msg_len); in RSA_add_pkcs1_prefix()
543 uint8_t *padded = OPENSSL_malloc(padded_len); in RSA_sign_pss_mgf1()
576 buf = OPENSSL_malloc(rsa_size); in RSA_verify()
618 uint8_t *em = OPENSSL_malloc(em_len); in RSA_verify_pss_mgf1()
841 uint8_t *sig = OPENSSL_malloc(sig_len); in RSA_check_fips()
Dpadding.c359 uint8_t *dbmask = OPENSSL_malloc(emlen - mdlen); in RSA_padding_add_PKCS1_OAEP_mgf1()
413 db = OPENSSL_malloc(dblen); in RSA_padding_check_PKCS1_OAEP_mgf1()
539 DB = OPENSSL_malloc(maskedDBLen); in RSA_verify_PKCS1_PSS_mgf1()
640 salt = OPENSSL_malloc(sLen); in RSA_padding_add_PKCS1_PSS_mgf1()
/external/boringssl/src/crypto/x509v3/
Dv3_info.c137 ntmp = OPENSSL_malloc(nlen);
191 if (!(objtmp = OPENSSL_malloc(objlen + 1))) { in v2i_AUTHORITY_INFO_ACCESS()
/external/boringssl/src/crypto/bio/
Dpair.c87 b = OPENSSL_malloc(sizeof *b); in bio_new()
324 b1->buf = OPENSSL_malloc(b1->size); in bio_make_pair()
337 b2->buf = OPENSSL_malloc(b2->size); in bio_make_pair()
Dbio.c73 BIO *ret = OPENSSL_malloc(sizeof(BIO)); in BIO_new()
446 *out = OPENSSL_malloc(len); in bio_read_all()
602 *out = OPENSSL_malloc(len); in OPENSSL_DECLARE_ERROR_REASON()
635 BIO_METHOD *method = OPENSSL_malloc(sizeof(BIO_METHOD)); in BIO_meth_new()
/external/boringssl/src/crypto/pkcs7/
Dpkcs7_x509.c233 PKCS7 *ret = OPENSSL_malloc(sizeof(PKCS7)); in pkcs7_new()
239 ret->d.sign = OPENSSL_malloc(sizeof(PKCS7_SIGNED)); in pkcs7_new()
322 *out = OPENSSL_malloc(p7->ber_len); in i2d_PKCS7()
/external/boringssl/src/crypto/fipsmodule/ec/
Dec_key.c88 EC_WRAPPED_SCALAR *wrapped = OPENSSL_malloc(sizeof(EC_WRAPPED_SCALAR)); in DEFINE_STATIC_EX_DATA_CLASS()
109 EC_KEY *ret = OPENSSL_malloc(sizeof(EC_KEY)); in EC_KEY_new_method()
409 uint8_t *buf = OPENSSL_malloc(len); in EC_KEY_key2buf()

12345