mbedTLS
mbedtls_calloc()
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
mbedtls_calloc()
mbedtls_calloc() function
Syntax
Show:
Summary
Declaration
Definition
from
platform.h:148
extern
void
*
mbedtls_calloc
(
size_t
n
,
size_t
size
)
;
Implemented in
platform.c:47
Arguments
Argument
n
size
Examples
References
from
examples
Code
Location
Referrer
void
*
mbedtls_calloc
(
size_t
nmemb
,
size_t
size
)
platform.c:47
extern
void
*
mbedtls_calloc
(
size_t
n
,
size_t
size
)
;
platform.h:148
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_asn1_sequence
)
)
;
asn1parse.c:319
asn1_get_sequence_of_cb()
cur
=
(
mbedtls_asn1_named_data
*
)
mbedtls_calloc
(
1
,
asn1write.c:385
mbedtls_asn1_store_named_data()
cur
->
oid
.
p
=
mbedtls_calloc
(
1
,
oid_len
)
;
asn1write.c:392
mbedtls_asn1_store_named_data()
cur
->
val
.
p
=
mbedtls_calloc
(
1
,
val_len
)
;
asn1write.c:402
mbedtls_asn1_store_named_data()
void
*
p
=
mbedtls_calloc
(
1
,
val_len
)
;
asn1write.c:421
mbedtls_asn1_store_named_data()
if
(
(
p
=
(
mbedtls_mpi_uint
*
)
mbedtls_calloc
(
nblimbs
,
ciL
)
)
==
NULL
)
{
bignum.c:218
mbedtls_mpi_grow()
if
(
(
p
=
(
mbedtls_mpi_uint
*
)
mbedtls_calloc
(
i
,
ciL
)
)
==
NULL
)
{
bignum.c:266
mbedtls_mpi_shrink()
mbedtls_mpi_uint
*
T
=
(
mbedtls_mpi_uint
*
)
mbedtls_calloc
(
T_limbs
,
sizeof
(
mbedtls_mpi_uint
)
)
;
bignum.c:1659
mbedtls_mpi_exp_mod_optionally_safe()
void
*
ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_gcm_context
)
)
;
cipher_wrap.c:123
gcm_ctx_alloc()
void
*
ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ccm_context
)
)
;
cipher_wrap.c:145
ccm_ctx_alloc()
mbedtls_aes_context
*
aes
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_aes_context
)
)
;
cipher_wrap.c:249
aes_ctx_alloc()
mbedtls_aes_xts_context
*
xts_ctx
=
mbedtls_calloc
(
1
,
sizeof
(
*
xts_ctx
)
)
;
cipher_wrap.c:495
xts_aes_ctx_alloc()
ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_aria_context
)
)
;
cipher_wrap.c:1249
aria_ctx_alloc()
cmac_ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_cmac_context_t
)
)
;
cmac.c:186
mbedtls_cipher_cmac_starts()
(
*
buf
=
mbedtls_calloc
(
1
,
*
n
+
1
)
)
==
NULL
)
{
dhm.c:600
load_file()
if
(
(
c
=
mbedtls_calloc
(
T_size
,
sizeof
(
mbedtls_mpi
)
)
)
==
NULL
)
{
ecp.c:1381
ecp_normalize_jac_many()
T
=
mbedtls_calloc
(
T_size
,
sizeof
(
mbedtls_ecp_point
)
)
;
ecp.c:2339
ecp_mul_comb()
ALLOC
(
md5
)
;
md.c:451
mbedtls_md_setup()
ALLOC
(
sha1
)
;
md.c:461
mbedtls_md_setup()
ALLOC
(
sha256
)
;
md.c:466
mbedtls_md_setup()
ALLOC
(
sha256
)
;
md.c:471
mbedtls_md_setup()
ALLOC
(
sha512
)
;
md.c:476
mbedtls_md_setup()
ALLOC
(
sha512
)
;
md.c:481
mbedtls_md_setup()
ctx
->
hmac_ctx
=
mbedtls_calloc
(
2
,
md_info
->
block_size
)
;
md.c:498
mbedtls_md_setup()
oid
->
p
=
mbedtls_calloc
(
max_possible_bytes
,
1
)
;
oid.c:1074
mbedtls_oid_from_numeric_string()
resized_mem
=
mbedtls_calloc
(
encoded_len
,
1
)
;
oid.c:1145
mbedtls_oid_from_numeric_string()
if
(
(
buf
=
mbedtls_calloc
(
1
,
len
)
)
==
NULL
)
{
pem.c:419
mbedtls_pem_read_buffer()
(
(
encode_buf
=
mbedtls_calloc
(
1
,
use_len
)
)
==
NULL
)
)
{
pem.c:515
mbedtls_pem_write_buffer()
void
*
ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_rsa_context
)
)
;
pk_wrap.c:456
rsa_alloc_wrap()
void
*
ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ecp_keypair
)
)
;
pk_wrap.c:1083
eckey_alloc_wrap()
void
*
ctx
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_rsa_alt_context
)
)
;
pk_wrap.c:1368
rsa_alt_alloc_wrap()
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_pkcs7_signer_info
)
)
;
pkcs7.c:408
pkcs7_get_signers_info_set()
pkcs7
->
raw
.
p
=
p
=
mbedtls_calloc
(
1
,
buflen
)
;
pkcs7.c:566
mbedtls_pkcs7_parse_der()
hash
=
mbedtls_calloc
(
mbedtls_md_get_size
(
md_info
)
,
1
)
;
pkcs7.c:674
mbedtls_pkcs7_data_or_hash_verify()
if
(
(
key_copy
=
mbedtls_calloc
(
1
,
keylen
)
)
==
NULL
)
{
pkparse.c:1110
mbedtls_pk_parse_key()
(
*
buf
=
mbedtls_calloc
(
1
,
*
n
+
1
)
)
==
NULL
)
{
pkparse.c:1320
mbedtls_pk_load_file()
output_buf
=
mbedtls_calloc
(
1
,
PUB_DER_MAX_BYTES
)
;
pkwrite.c:556
mbedtls_pk_write_pubkey_pem()
output_buf
=
mbedtls_calloc
(
1
,
PRV_DER_MAX_BYTES
)
;
pkwrite.c:583
mbedtls_pk_write_key_pem()
slot
->
key
.
data
=
mbedtls_calloc
(
1
,
buffer_length
)
;
psa_crypto.c:712
psa_allocate_buffer_to_slot()
*
data
=
mbedtls_calloc
(
1
,
m_bytes
)
;
psa_crypto.c:6221
psa_generate_derived_ecc_key_weierstrass_helper()
*
data
=
mbedtls_calloc
(
1
,
output_length
)
;
psa_crypto.c:6306
psa_generate_derived_ecc_key_montgomery_helper()
data
=
mbedtls_calloc
(
1
,
bytes
)
;
psa_crypto.c:6396
psa_generate_derived_key_internal()
prf
->
seed
=
mbedtls_calloc
(
1
,
data_length
)
;
psa_crypto.c:6914
psa_tls12_prf_set_seed()
prf
->
secret
=
mbedtls_calloc
(
1
,
data_length
)
;
psa_crypto.c:6938
psa_tls12_prf_set_key()
prf
->
label
=
mbedtls_calloc
(
1
,
data_length
)
;
psa_crypto.c:6961
psa_tls12_prf_set_label()
uint8_t
*
pms
=
mbedtls_calloc
(
1
,
pms_len
)
;
psa_crypto.c:7009
psa_tls12_prf_psk_to_ms_set_key()
prf
->
other_secret
=
mbedtls_calloc
(
1
,
data_length
)
;
psa_crypto.c:7069
psa_tls12_prf_psk_to_ms_set_other_key()
operation
->
data
.
inputs
.
password
=
mbedtls_calloc
(
1
,
slot
->
key
.
bytes
)
;
psa_crypto.c:8540
psa_pake_set_password_key()
operation
->
data
.
inputs
.
user
=
mbedtls_calloc
(
1
,
user_id_len
)
;
psa_crypto.c:8581
psa_pake_set_user()
operation
->
data
.
inputs
.
peer
=
mbedtls_calloc
(
1
,
peer_id_len
)
;
psa_crypto.c:8625
psa_pake_set_peer()
local_input
->
buffer
=
mbedtls_calloc
(
input_len
,
1
)
;
psa_crypto.c:9155
psa_crypto_local_input_alloc()
local_output
->
buffer
=
mbedtls_calloc
(
output_len
,
1
)
;
psa_crypto.c:9195
psa_crypto_local_output_alloc()
ecp
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ecp_keypair
)
)
;
psa_crypto_ecp.c:134
mbedtls_psa_ecp_load_representation()
operation
->
password
=
mbedtls_calloc
(
1
,
password_len
)
;
psa_crypto_pake.c:184
mbedtls_psa_pake_setup()
user
=
mbedtls_calloc
(
1
,
user_len
)
;
psa_crypto_pake.c:190
mbedtls_psa_pake_setup()
peer
=
mbedtls_calloc
(
1
,
peer_len
)
;
psa_crypto_pake.c:196
mbedtls_psa_pake_setup()
*
p_rsa
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_rsa_context
)
)
;
psa_crypto_rsa.c:66
mbedtls_psa_rsa_load_representation()
mbedtls_calloc
(
PERSISTENT_KEY_CACHE_COUNT
,
psa_crypto_slot_management.c:434
psa_initialize_key_slots()
mbedtls_calloc
(
key_slice_length
(
slice_idx
)
,
psa_crypto_slot_management.c:516
psa_allocate_volatile_key_slot()
*
key_data
=
mbedtls_calloc
(
1
,
*
key_data_length
)
;
psa_crypto_storage.c:300
psa_parse_key_data_from_storage()
storage_data
=
mbedtls_calloc
(
1
,
storage_data_length
)
;
psa_crypto_storage.c:335
psa_save_persistent_key()
loaded_data
=
mbedtls_calloc
(
1
,
storage_data_length
)
;
psa_crypto_storage.c:369
psa_load_persistent_key()
sig_try
=
mbedtls_calloc
(
1
,
ctx
->
len
)
;
rsa.c:2461
mbedtls_rsa_rsassa_pkcs1_v15_sign()
verif
=
mbedtls_calloc
(
1
,
ctx
->
len
)
;
rsa.c:2466
mbedtls_rsa_rsassa_pkcs1_v15_sign()
if
(
(
encoded
=
mbedtls_calloc
(
1
,
sig_len
)
)
==
NULL
||
rsa.c:2695
mbedtls_rsa_rsassa_pkcs1_v15_verify()
(
encoded_expected
=
mbedtls_calloc
(
1
,
sig_len
)
)
==
NULL
)
{
rsa.c:2696
mbedtls_rsa_rsassa_pkcs1_v15_verify()
buf
=
mbedtls_calloc
(
1024
,
sizeof
(
unsigned
char
)
)
;
sha256.c:893
mbedtls_sha256_common_self_test()
buf
=
mbedtls_calloc
(
1024
,
sizeof
(
unsigned
char
)
)
;
sha512.c:1025
mbedtls_sha512_common_self_test()
cur
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_cache_entry
)
)
;
ssl_cache.c:186
ssl_cache_pick_writing_slot()
session_serialized
=
mbedtls_calloc
(
1
,
session_serialized_len
)
;
ssl_cache.c:278
mbedtls_ssl_cache_set()
if
(
(
msg
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_flight_item
)
)
)
==
NULL
)
{
ssl_msg.c:2422
ssl_flight_append()
if
(
(
msg
->
p
=
mbedtls_calloc
(
1
,
ssl
->
out_msglen
)
)
==
NULL
)
{
ssl_msg.c:2428
ssl_flight_append()
hs_buf
->
data
=
mbedtls_calloc
(
1
,
reassembly_buf_sz
)
;
ssl_msg.c:4537
ssl_buffer_message()
mbedtls_calloc
(
1
,
hs
->
buffering
.
future_record
.
len
)
;
ssl_msg.c:4822
ssl_buffer_future_record()
dst
->
peer_cert
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_crt
)
)
;
ssl_tls.c:252
mbedtls_ssl_session_copy()
dst
->
ticket
=
mbedtls_calloc
(
1
,
src
->
ticket_len
)
;
ssl_tls.c:295
mbedtls_ssl_session_copy()
ssl
->
transform_negotiate
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_transform
)
)
;
ssl_tls.c:1072
ssl_handshake_init()
ssl
->
session_negotiate
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_session
)
)
;
ssl_tls.c:1077
ssl_handshake_init()
ssl
->
handshake
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_handshake_params
)
)
;
ssl_tls.c:1081
ssl_handshake_init()
ssl
->
in_buf
=
mbedtls_calloc
(
1
,
in_buf_len
)
;
ssl_tls.c:1395
mbedtls_ssl_setup()
ssl
->
out_buf
=
mbedtls_calloc
(
1
,
out_buf_len
)
;
ssl_tls.c:1405
mbedtls_ssl_setup()
new_cert
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_key_cert
)
)
;
ssl_tls.c:1837
ssl_append_key_cert()
conf
->
psk_identity
=
mbedtls_calloc
(
1
,
psk_identity_len
)
;
ssl_tls.c:2158
ssl_conf_set_psk_identity()
if
(
(
conf
->
psk
=
mbedtls_calloc
(
1
,
psk_len
)
)
==
NULL
)
{
ssl_tls.c:2191
mbedtls_ssl_conf_psk()
if
(
(
ssl
->
handshake
->
psk
=
mbedtls_calloc
(
1
,
psk_len
)
)
==
NULL
)
{
ssl_tls.c:2280
mbedtls_ssl_set_hs_psk()
ssl
->
hostname
=
mbedtls_calloc
(
1
,
hostname_len
+
1
)
;
ssl_tls.c:2787
mbedtls_ssl_set_hostname()
session
->
peer_cert
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_crt
)
)
;
ssl_tls.c:3622
ssl_tls12_session_load()
session
->
ticket
=
mbedtls_calloc
(
1
,
session
->
ticket_len
)
;
ssl_tls.c:3694
ssl_tls12_session_load()
tmp
=
mbedtls_calloc
(
1
,
tmp_len
)
;
ssl_tls.c:6815
tls_prf_generic()
chain
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_crt
)
)
;
ssl_tls.c:8002
mbedtls_ssl_parse_certificate()
ssl
->
handshake
->
ecjpake_cache
=
mbedtls_calloc
(
1
,
kkpp_len
)
;
ssl_tls12_client.c:188
ssl_write_ecjpake_kkpp_ext()
ssl
->
handshake
->
cookie
=
mbedtls_calloc
(
1
,
cookie_len
)
;
ssl_tls12_client.c:1156
ssl_parse_hello_verify_request()
if
(
(
ticket
=
mbedtls_calloc
(
1
,
ticket_len
)
)
==
NULL
)
{
ssl_tls12_client.c:3458
ssl_parse_new_session_ticket()
if
(
(
ssl
->
cli_id
=
mbedtls_calloc
(
1
,
ilen
)
)
==
NULL
)
{
ssl_tls12_server.c:58
mbedtls_ssl_set_client_transport_id()
if
(
(
curves_tls_id
=
mbedtls_calloc
(
our_size
,
ssl_tls12_server.c:219
ssl_parse_supported_groups_ext()
cur
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_name
)
)
;
x509.c:531
mbedtls_x509_get_name()
cur
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_name
)
)
;
x509.c:548
mbedtls_x509_get_name()
pss_opts
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_pk_rsassa_pss_options
)
)
;
x509.c:736
mbedtls_x509_get_sig_alg()
cur
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_asn1_sequence
)
)
;
x509.c:1264
mbedtls_x509_get_subject_alt_name_ext()
unsigned
char
*
der
=
mbedtls_calloc
(
1
,
der_length
)
;
x509_create.c:229
parse_attribute_value_hex_der_encoded()
oid
.
p
=
mbedtls_calloc
(
1
,
oid
.
len
)
;
x509_create.c:308
mbedtls_x509_string_to_names()
cur_entry
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_crl_entry
)
)
;
x509_crl.c:267
x509_get_entries()
crl
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_crl
)
)
;
x509_crl.c:311
mbedtls_x509_crl_parse_der()
p
=
mbedtls_calloc
(
1
,
buflen
)
;
x509_crl.c:329
mbedtls_x509_crl_parse_der()
cur
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_asn1_sequence
)
)
;
x509_crt.c:808
x509_get_certificate_policies()
crt
->
raw
.
p
=
p
=
mbedtls_calloc
(
1
,
crt
->
raw
.
len
)
;
x509_crt.c:1117
x509_crt_parse_der_core()
crt
->
next
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_x509_crt
)
)
;
x509_crt.c:1339
mbedtls_x509_crt_parse_der_internal()
p
=
mbedtls_calloc
(
1
,
len
=
buflen
)
;
x509_csr.c:289
mbedtls_x509_csr_parse_der_internal()
buf
=
mbedtls_calloc
(
1
,
buflen
)
;
x509write.c:91
mbedtls_x509_write_set_san_common()
if
(
(
sig
=
mbedtls_calloc
(
1
,
MBEDTLS_PK_SIGNATURE_MAX_SIZE
)
)
==
NULL
)
{
x509write_csr.c:296
mbedtls_x509write_csr_der()
Call Tree
from
examples
mbedtls_calloc()
is called by 88 functions and calls 1 function:
asn1_get_sequence_of_cb()
mbedtls_asn1_store_named_data()
mbedtls_mpi_grow()
mbedtls_mpi_shrink()
mbedtls_mpi_exp_mod_optionally_safe()
gcm_ctx_alloc()
ccm_ctx_alloc()
aes_ctx_alloc()
xts_aes_ctx_alloc()
aria_ctx_alloc()
mbedtls_cipher_cmac_starts()
load_file()
ecp_normalize_jac_many()
ecp_mul_comb()
mbedtls_md_setup()
mbedtls_oid_from_numeric_string()
mbedtls_pem_read_buffer()
mbedtls_pem_write_buffer()
rsa_alloc_wrap()
eckey_alloc_wrap()
rsa_alt_alloc_wrap()
mbedtls_pk_parse_key()
mbedtls_pk_load_file()
mbedtls_pk_write_pubkey_pem()
mbedtls_pk_write_key_pem()
psa_allocate_buffer_to_slot()
psa_generate_derived_ecc_key_weierstrass_helper()
psa_generate_derived_ecc_key_montgomery_helper()
psa_generate_derived_key_internal()
psa_tls12_prf_set_seed()
psa_tls12_prf_set_key()
psa_tls12_prf_set_label()
psa_tls12_prf_psk_to_ms_set_key()
psa_tls12_prf_psk_to_ms_set_other_key()
psa_pake_set_password_key()
psa_pake_set_user()
psa_pake_set_peer()
psa_crypto_local_input_alloc()
psa_crypto_local_output_alloc()
mbedtls_psa_ecp_load_representation()
mbedtls_psa_pake_setup()
mbedtls_psa_rsa_load_representation()
psa_initialize_key_slots()
psa_allocate_volatile_key_slot()
psa_parse_key_data_from_storage()
psa_save_persistent_key()
psa_load_persistent_key()
mbedtls_rsa_rsassa_pkcs1_v15_sign()
mbedtls_rsa_rsassa_pkcs1_v15_verify()
mbedtls_sha256_common_self_test()
mbedtls_sha512_common_self_test()
ssl_cache_pick_writing_slot()
mbedtls_ssl_cache_set()
ssl_flight_append()
ssl_buffer_message()
ssl_buffer_future_record()
mbedtls_ssl_session_copy()
ssl_handshake_init()
mbedtls_ssl_setup()
ssl_append_key_cert()
ssl_conf_set_psk_identity()
mbedtls_ssl_conf_psk()
mbedtls_ssl_set_hs_psk()
mbedtls_ssl_set_hostname()
ssl_tls12_session_load()
tls_prf_generic()
mbedtls_ssl_parse_certificate()
ssl_write_ecjpake_kkpp_ext()
ssl_parse_hello_verify_request()
ssl_parse_new_session_ticket()
mbedtls_ssl_set_client_transport_id()
ssl_parse_supported_groups_ext()
pkcs7_get_signers_info_set()
mbedtls_pkcs7_parse_der()
mbedtls_pkcs7_data_or_hash_verify()
mbedtls_x509_get_name()
mbedtls_x509_get_sig_alg()
mbedtls_x509_get_subject_alt_name_ext()
parse_attribute_value_hex_der_encoded()
mbedtls_x509_string_to_names()
x509_get_entries()
mbedtls_x509_crl_parse_der()
x509_get_certificate_policies()
x509_crt_parse_der_core()
mbedtls_x509_crt_parse_der_internal()
mbedtls_x509_csr_parse_der_internal()
mbedtls_x509_write_set_san_common()
mbedtls_x509write_csr_der()
All items filtered out
mbedtls_calloc()
mbedtls_calloc_func
All items filtered out
Data Use
from
examples
mbedtls_calloc()
:
All items filtered out
mbedtls_calloc()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out