ESP-IDF
os_malloc
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (1/5)...
Files
loading (3/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
os_malloc
os_malloc macro
Syntax
Show:
Summary
Declaration
from
os.h:214
#define
os_malloc
(
s
)
malloc
(
(
s
)
)
Arguments
Argument
s
Examples
References
from
examples
Code
Location
#define
os_malloc
(
s
)
malloc
(
(
s
)
)
os.h:214
out
=
os_malloc
(
olen
)
;
base64.c:37
pos
=
out
=
os_malloc
(
olen
)
;
base64.c:108
plain
=
os_malloc
(
data_len
+
AES_BLOCK_SIZE
)
;
ccmp.c:151
crypt
=
os_malloc
(
hdrlen
+
8
+
plen
+
8
+
AES_BLOCK_SIZE
)
;
ccmp.c:203
crypt
=
os_malloc
(
hdrlen
+
plen
+
8
+
AES_BLOCK_SIZE
)
;
ccmp.c:254
plain
=
os_malloc
(
data_len
+
AES_BLOCK_SIZE
)
;
ccmp.c:293
crypt
=
os_malloc
(
hdrlen
+
8
+
plen
+
16
+
AES_BLOCK_SIZE
)
;
ccmp.c:329
str
=
os_malloc
(
tlen
+
1
)
;
common.c:337
str
=
(
u8
*
)
os_malloc
(
*
len
+
1
)
;
common.c:356
str
=
os_malloc
(
tlen
+
1
)
;
common.c:366
res
=
os_malloc
(
len
+
1
)
;
common.c:443
void
*
r
=
os_malloc
(
len
)
;
common.c:522
val
=
os_malloc
(
len
+
1
)
;
common.c:575
mbedtls_pk_context
*
key
=
os_malloc
(
sizeof
(
*
key
)
)
;
crypto_mbedtls-ec.c:493
char
*
der_data
=
os_malloc
(
ECP_PRV_DER_MAX_BYTES
)
;
crypto_mbedtls-ec.c:570
*
key_data
=
os_malloc
(
*
key_len
)
;
crypto_mbedtls-ec.c:582
unsigned
char
*
buf
=
os_malloc
(
ECP_PUB_DER_MAX_BYTES
)
;
crypto_mbedtls-ec.c:642
*
key_buf
=
os_malloc
(
len
)
;
crypto_mbedtls-ec.c:654
ctx
=
os_malloc
(
sizeof
(
*
ctx
)
)
;
crypto_mbedtls-ec.c:742
mbedtls_ecdsa_context
*
ctx
=
os_malloc
(
sizeof
(
*
ctx
)
)
;
crypto_mbedtls-ec.c:796
*
key_buf
=
os_malloc
(
len
)
;
crypto_mbedtls-ec.c:1030
mbedtls_ecdsa_context
*
ctx_verify
=
os_malloc
(
sizeof
(
mbedtls_ecdsa_context
)
)
;
crypto_mbedtls-ec.c:1292
mbedtls_entropy_context
*
entropy
=
os_malloc
(
sizeof
(
*
entropy
)
)
;
crypto_mbedtls-rsa.c:246
mbedtls_ctr_drbg_context
*
ctr_drbg
=
os_malloc
(
sizeof
(
*
ctr_drbg
)
)
;
crypto_mbedtls-rsa.c:247
mbedtls_entropy_context
*
entropy
=
os_malloc
(
sizeof
(
*
entropy
)
)
;
crypto_mbedtls-rsa.c:290
mbedtls_ctr_drbg_context
*
ctr_drbg
=
os_malloc
(
sizeof
(
*
ctr_drbg
)
)
;
crypto_mbedtls-rsa.c:291
mbedtls_aes_context
*
aes
=
os_malloc
(
sizeof
(
*
aes
)
)
;
crypto_mbedtls.c:381
bi
->
info
=
os_malloc
(
end
-
info
+
1
)
;
dpp.c:319
bi
->
uri
=
os_malloc
(
len
+
1
)
;
dpp.c:1036
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:1812
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:2173
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:2395
unwrapped2
=
os_malloc
(
unwrapped2_len
)
;
dpp.c:2486
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:2574
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:2732
conf
->
group_id
=
os_malloc
(
group_id_len
+
1
)
;
dpp.c:2958
tmp
=
os_malloc
(
len
+
1
)
;
dpp.c:3009
hash
=
os_malloc
(
curve
->
hash_len
)
;
dpp.c:3370
signature
=
os_malloc
(
2
*
curve
->
prime_len
)
;
dpp.c:3382
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:3713
unwrapped
=
os_malloc
(
unwrapped_len
)
;
dpp.c:4467
privkey
=
os_malloc
(
privkey_len
)
;
dpp.c:5018
privkey
=
os_malloc
(
privkey_len
)
;
dpp.c:5173
hash
=
os_malloc
(
curve
->
hash_len
)
;
dpp_crypto.c:725
signed_connector
=
os_malloc
(
peer_connector_len
+
1
)
;
dpp_crypto.c:782
buf
=
os_malloc
(
mcount
*
sizeof
(
struct
eap_method_type
)
)
;
eap.c:192
config_methods
=
os_malloc
(
mcount
*
sizeof
(
struct
eap_method_type
)
)
;
eap.c:613
tlv
=
os_malloc
(
tlv_len
)
;
eap_fast.c:1393
out
=
os_malloc
(
len
)
;
eap_fast_common.c:100
buf
=
os_malloc
(
*
len
)
;
eap_fast_pac.c:243
rc
->
buf
=
os_malloc
(
rc
->
buf_len
)
;
eap_fast_pac.c:260
pos
=
buf
=
os_malloc
(
buf_len
)
;
eap_fast_pac.c:634
buf
=
os_malloc
(
len
)
;
eap_fast_pac.c:895
config
->
password
=
os_malloc
(
16
)
;
eap_mschapv2.c:292
key
=
os_malloc
(
key_len
)
;
eap_mschapv2.c:816
key
=
os_malloc
(
EAP_TLS_KEY_LEN
)
;
eap_peap.c:1390
id
=
os_malloc
(
data
->
id_len
)
;
eap_peap.c:1452
buf
=
os_malloc
(
buflen
)
;
eap_server.c:202
buf
=
os_malloc
(
len
*
4
+
1
)
;
eap_server_identity.c:123
sm
->
identity
=
os_malloc
(
len
?
len
:
1
)
;
eap_server_identity.c:132
key
=
os_malloc
(
EAP_TLS_KEY_LEN
)
;
eap_tls.c:284
out
=
os_malloc
(
len
)
;
eap_tls_common.c:278
id
=
os_malloc
(
*
len
)
;
eap_tls_common.c:320
out
=
os_malloc
(
*
len
)
;
eap_tls_common.c:346
parse
->
eapdata
=
os_malloc
(
dlen
)
;
eap_ttls.c:875
buf
=
os_malloc
(
sizeof
(
*
hdr
)
+
1
)
;
eap_ttls.c:1030
key
=
os_malloc
(
EAP_TLS_KEY_LEN
)
;
eap_ttls.c:1743
id
=
os_malloc
(
data
->
id_len
)
;
eap_ttls.c:1762
key
=
os_malloc
(
EAP_EMSK_LEN
)
;
eap_ttls.c:1781
ie
=
os_malloc
(
SCAN_IE_LEN
)
;
esp_common.c:646
ie
=
os_malloc
(
ASSOC_IE_LEN
+
ies_len
)
;
esp_common.c:809
u8
*
addr
=
os_malloc
(
ETH_ALEN
)
;
esp_hostap.c:465
struct
sae_hostap_confirm_data
*
frm
=
os_malloc
(
sizeof
(
struct
sae_hostap_confirm_data
)
+
len
)
;
esp_wpa3.c:665
buffer
=
os_malloc
(
*
msg_len
+
sizeof
(
struct
l2_ethhdr
)
)
;
esp_wpas_glue.c:26
void
*
buffer
=
os_malloc
(
data_len
+
sizeof
(
struct
l2_ethhdr
)
)
;
esp_wpas_glue.c:77
wps_cb
=
os_malloc
(
sizeof
(
struct
wps_funcs
)
)
;
esp_wps.c:1506
s_wps_sm_cb
=
os_malloc
(
sizeof
(
struct
wps_sm_funcs
)
)
;
esp_wps.c:1516
str
=
os_malloc
(
buf_len
)
;
json.c:75
str
=
os_malloc
(
len
+
1
)
;
json.c:178
tmp
=
os_malloc
(
tmp_len
)
;
json.c:599
#define
XMALLOC
os_malloc
libtommath.h:78
chans
=
os_malloc
(
sizeof
(
struct
wpa_mbo_non_pref_channel
)
*
non_pref_chan
->
non_pref_chan_num
)
;
mbo.c:466
bss
=
os_malloc
(
sizeof
(
*
bss
)
)
;
mbo.c:552
decrypted
=
os_malloc
(
s_len
)
;
pkcs1.c:212
D
=
os_malloc
(
v
)
;
pkcs5.c:413
I
=
os_malloc
(
S_len
+
P_len
)
;
pkcs5.c:421
B
=
os_malloc
(
v
)
;
pkcs5.c:434
pw
=
os_malloc
(
2
*
(
pw_len
+
1
)
)
;
pkcs5.c:501
eb
=
os_malloc
(
enc_data_len
)
;
pkcs5.c:594
buf
=
os_malloc
(
sizeof
(
*
rep
)
+
14
+
*
ie_len
+
subelems_len
)
;
rrm.c:509
stub_password
=
os_malloc
(
password_len
)
;
sae.c:298
tmp_password
=
os_malloc
(
password_len
)
;
sae.c:299
bin
=
os_malloc
(
prime_len
)
;
sae.c:566
sae
->
tmp
->
pw_id
=
os_malloc
(
len
+
1
)
;
sae.c:2034
pos
=
out
=
os_malloc
(
olen
)
;
sae_pk.c:292
hash_data
=
os_malloc
(
hash_data_len
)
;
sae_pk.c:561
tmp_out
=
os_malloc
(
skip
+
out_len
)
;
tls_internal.c:420
unsigned
char
*
buf
=
os_malloc
(
MAX_PHASE2_BUFFER
)
;
tls_mbedtls.c:876
seed
=
os_malloc
(
seed_len
)
;
tls_mbedtls.c:1067
in_msg
=
os_malloc
(
in_len
)
;
tlsv1_client.c:201
seed
=
os_malloc
(
seed_len
)
;
tlsv1_client.c:576
pos
=
conn
->
client_hello_ext
=
os_malloc
(
4
+
data_len
)
;
tlsv1_client.c:753
*
out_data
=
os_malloc
(
left
)
;
tlsv1_client_read.c:1479
hello
=
os_malloc
(
len
)
;
tlsv1_client_write.c:76
csecret
=
os_malloc
(
csecret_len
)
;
tlsv1_client_write.c:353
dh_yc
=
os_malloc
(
dh_yc_len
)
;
tlsv1_client_write.c:383
shared
=
os_malloc
(
shared_len
)
;
tlsv1_client_write.c:429
msg
=
os_malloc
(
msglen
)
;
tlsv1_client_write.c:882
msg
=
os_malloc
(
1000
)
;
tlsv1_client_write.c:920
return
os_malloc
(
1
)
;
tlsv1_client_write.c:960
alert
=
os_malloc
(
10
)
;
tlsv1_client_write.c:979
buf
=
os_malloc
(
end
-
pos
)
;
tlsv1_common.c:452
rsn_ie_buf
=
os_malloc
(
wpa_ie_len
+
2
+
2
+
PMKID_LEN
+
wpa.c:546
kde_buf
=
os_malloc
(
kde_len
+
wpa.c:709
wifi_wpa_igtk_t
*
igtk
=
os_malloc
(
sizeof
(
wifi_wpa_igtk_t
)
)
;
wpa_auth.c:167
sm
->
last_rx_eapol_key
=
(
u8
*
)
os_malloc
(
data_len
)
;
wpa_auth.c:936
kde
=
(
u8
*
)
os_malloc
(
kde_len
)
;
wpa_auth.c:1890
kde
=
(
u8
*
)
os_malloc
(
kde_len
)
;
wpa_auth.c:2174
wpa_auth
->
wpa_ie
=
os_malloc
(
pos
-
buf
)
;
wpa_auth_ie.c:366
sm
->
wpa_ie
=
os_malloc
(
wpa_ie_len
)
;
wpa_auth_ie.c:647
sm
->
rsnxe
=
os_malloc
(
rsnxe_len
)
;
wpa_auth_ie.c:656
buf
=
os_malloc
(
buf_len
)
;
wpa_common.c:43
sm
->
assoc_resp_ies
=
os_malloc
(
ft
.
mdie_len
+
2
+
ft
.
ftie_len
+
2
)
;
wpa_ft.c:117
char
*
str
=
(
char
*
)
os_malloc
(
attr
->
dev_name_len
+
1
)
;
wps.c:713
wps_data
->
use_cred
=
os_malloc
(
sizeof
(
struct
wps_credential
)
)
;
wps_hostapd.c:532
name
->
email
=
os_malloc
(
hdr
.
length
+
1
)
;
x509v3.c:407
cert
->
subject_dn
=
os_malloc
(
pos
-
subject_dn
)
;
x509v3.c:1560
data
=
os_malloc
(
data_len
)
;
x509v3.c:1871
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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