mbedTLS
+
0
/1 examples
SourceVu will show references to
MBEDTLS_ASN1_CHK_ADD
from the following samples and libraries:
ESP-IDF
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
MBEDTLS_ASN1_CHK_ADD
MBEDTLS_ASN1_CHK_ADD macro
Syntax
Show:
Summary
Declaration
from
asn1write.h:17
#define
MBEDTLS_ASN1_CHK_ADD
(
g
,
f
)
\
do
\
{
\
if
(
(
ret
=
(
f
)
)
<
0
)
\
return
ret
;
\
else
\
(
g
)
+=
ret
;
\
}
while
(
0
)
Arguments
Argument
g
f
Examples
MBEDTLS_ASN1_CHK_ADD
is referenced by 1 libraries and example projects:
ESP-IDF
References
from
0/1
examples
Code
Location
#define
MBEDTLS_ASN1_CHK_ADD
(
g
,
f
)
\
asn1write.h:17
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
asn1write.c:76
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
tag
)
)
;
asn1write.c:77
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
asn1write.c:153
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_null
(
p
,
start
)
)
;
asn1write.c:174
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_oid
(
p
,
start
,
oid
,
oid_len
)
)
;
asn1write.c:180
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
asn1write.c:240
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
buf
,
size
)
)
;
asn1write.c:345
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_mpi
(
&
p
,
buf
,
s
)
)
;
ecdsa.c:618
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_mpi
(
&
p
,
buf
,
r
)
)
;
ecdsa.c:619
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
p
,
buf
,
len
)
)
;
ecdsa.c:621
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
p
,
buf
,
ecdsa.c:622
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_oid
(
p
,
start
,
oid
,
oid_len
)
)
;
pkwrite.c:242
MBEDTLS_ASN1_CHK_ADD
(
len
,
pk_write_ec_private
(
p
,
buf
,
pk
)
)
;
pkwrite.c:273
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
buf
,
len
)
)
;
pkwrite.c:274
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
buf
,
MBEDTLS_ASN1_OCTET_STRING
)
)
;
pkwrite.c:275
MBEDTLS_ASN1_CHK_ADD
(
len
,
pkwrite.c:282
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_int
(
p
,
buf
,
0
)
)
;
pkwrite.c:286
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
buf
,
len
)
)
;
pkwrite.c:288
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
buf
,
MBEDTLS_ASN1_CONSTRUCTED
|
pkwrite.c:289
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
pk_write_ec_pubkey
(
p
,
buf
,
pk
)
)
;
pkwrite.c:315
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
mbedtls_asn1_write_len
(
p
,
buf
,
pub_len
)
)
;
pkwrite.c:324
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
mbedtls_asn1_write_tag
(
p
,
buf
,
MBEDTLS_ASN1_BIT_STRING
)
)
;
pkwrite.c:325
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
mbedtls_asn1_write_len
(
p
,
buf
,
pub_len
)
)
;
pkwrite.c:327
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
mbedtls_asn1_write_tag
(
p
,
buf
,
pkwrite.c:328
MBEDTLS_ASN1_CHK_ADD
(
par_len
,
pk_write_ec_param
(
p
,
buf
,
grp_id
)
)
;
pkwrite.c:335
MBEDTLS_ASN1_CHK_ADD
(
par_len
,
mbedtls_asn1_write_len
(
p
,
buf
,
par_len
)
)
;
pkwrite.c:336
MBEDTLS_ASN1_CHK_ADD
(
par_len
,
mbedtls_asn1_write_tag
(
p
,
buf
,
pkwrite.c:337
MBEDTLS_ASN1_CHK_ADD
(
len
,
pk_write_ec_private
(
p
,
buf
,
pk
)
)
;
pkwrite.c:343
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_int
(
p
,
buf
,
1
)
)
;
pkwrite.c:346
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
buf
,
len
)
)
;
pkwrite.c:348
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
buf
,
MBEDTLS_ASN1_CONSTRUCTED
|
pkwrite.c:349
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_rsa_write_pubkey
(
mbedtls_pk_rsa
(
*
key
)
,
start
,
p
)
)
;
pkwrite.c:427
MBEDTLS_ASN1_CHK_ADD
(
len
,
pk_write_ec_pubkey
(
p
,
start
,
key
)
)
;
pkwrite.c:432
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_pk_write_pubkey
(
&
c
,
buf
,
key
)
)
;
pkwrite.c:460
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
pkwrite.c:474
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
MBEDTLS_ASN1_BIT_STRING
)
)
;
pkwrite.c:475
MBEDTLS_ASN1_CHK_ADD
(
par_len
,
pk_write_ec_param
(
&
c
,
buf
,
ec_grp_id
)
)
;
pkwrite.c:489
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_algorithm_identifier_ext
(
&
c
,
buf
,
oid
,
oid_len
,
pkwrite.c:502
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
pkwrite.c:505
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
MBEDTLS_ASN1_CONSTRUCTED
|
pkwrite.c:506
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
p
,
der_buf_start
,
len
)
)
;
psa_util.c:427
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
p
,
der_buf_start
,
MBEDTLS_ASN1_INTEGER
)
)
;
psa_util.c:428
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
p
,
der
,
len
)
)
;
psa_util.c:472
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
p
,
der
,
psa_util.c:473
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_int
(
p
,
start
,
0
)
)
;
rsa.c:363
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
rsa.c:364
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
rsa.c:365
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
rsa.c:408
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
MBEDTLS_ASN1_CONSTRUCTED
|
rsa.c:409
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tagged_string
(
p
,
start
,
x509_create.c:424
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_oid
(
p
,
start
,
oid
,
x509_create.c:430
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509_create.c:433
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
x509_create.c:434
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509_create.c:438
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
x509_create.c:439
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509_write_name
(
p
,
start
,
cur
)
)
;
x509_create.c:454
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509_create.c:458
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
MBEDTLS_ASN1_CONSTRUCTED
|
x509_create.c:459
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509_create.c:489
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
MBEDTLS_ASN1_BIT_STRING
)
)
;
x509_create.c:490
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509_create.c:504
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
ext
->
val
.
p
+
1
,
x509_create.c:517
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
ext
->
val
.
len
-
1
)
)
;
x509_create.c:519
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
MBEDTLS_ASN1_OCTET_STRING
)
)
;
x509_create.c:520
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_bool
(
p
,
start
,
1
)
)
;
x509_create.c:523
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
ext
->
oid
.
p
,
x509_create.c:526
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
ext
->
oid
.
len
)
)
;
x509_create.c:528
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
MBEDTLS_ASN1_OID
)
)
;
x509_create.c:529
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509_create.c:531
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
MBEDTLS_ASN1_CONSTRUCTED
|
x509_create.c:532
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509_write_extension
(
p
,
start
,
cur_ext
)
)
;
x509_create.c:556
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_int
(
&
c
,
buf
,
x509write_crt.c:181
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_bool
(
&
c
,
buf
,
1
)
)
;
x509write_crt.c:184
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:187
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
x509write_crt.c:188
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:213
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:243
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
tag
)
)
;
x509write_crt.c:244
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:247
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:248
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
&
c
,
buf
,
ext
->
buf
.
p
,
ext
->
buf
.
len
)
)
;
x509write_crt.c:350
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
ext
->
buf
.
len
)
)
;
x509write_crt.c:351
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
MBEDTLS_ASN1_OID
)
)
;
x509write_crt.c:352
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:356
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:357
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
x509write_crt.c:401
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509write_crt.c:404
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
x509write_crt.c:405
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
p
,
start
,
x509write_crt.c:408
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
p
,
start
,
len
)
)
;
x509write_crt.c:411
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
p
,
start
,
x509write_crt.c:412
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:469
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:472
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:473
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:477
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:478
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
x509write_crt.c:487
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:496
MBEDTLS_ASN1_CHK_ADD
(
sub_len
,
x509write_crt.c:507
MBEDTLS_ASN1_CHK_ADD
(
sub_len
,
x509write_crt.c:511
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
sub_len
)
)
;
x509write_crt.c:516
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:517
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_x509_write_names
(
&
c
,
buf
,
x509write_crt.c:525
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:541
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_raw_buffer
(
&
c
,
buf
,
x509write_crt.c:555
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
x509write_crt.c:563
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
x509write_crt.c:566
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
x509write_crt.c:569
MBEDTLS_ASN1_CHK_ADD
(
sub_len
,
x509write_crt.c:579
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:582
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:584
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:590
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_crt.c:591
MBEDTLS_ASN1_CHK_ADD
(
sig_and_oid_len
,
mbedtls_x509_write_sig
(
&
c2
,
c
,
x509write_crt.c:635
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_crt.c:651
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_tag
(
&
c
,
buf
,
x509write_crt.c:652
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_x509_write_extensions
(
&
c
,
buf
,
x509write_csr.c:157
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_csr.c:161
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:162
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_csr.c:167
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:168
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:173
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_csr.c:178
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:179
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_csr.c:185
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:186
MBEDTLS_ASN1_CHK_ADD
(
pub_len
,
mbedtls_pk_write_pubkey_der
(
ctx
->
key
,
x509write_csr.c:191
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_x509_write_names
(
&
c
,
buf
,
x509write_csr.c:199
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_int
(
&
c
,
buf
,
0
)
)
;
x509write_csr.c:205
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c
,
buf
,
len
)
)
;
x509write_csr.c:207
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:208
MBEDTLS_ASN1_CHK_ADD
(
sig_and_oid_len
,
x509write_csr.c:263
MBEDTLS_ASN1_CHK_ADD
(
len
,
mbedtls_asn1_write_len
(
&
c2
,
buf
,
len
)
)
;
x509write_csr.c:276
MBEDTLS_ASN1_CHK_ADD
(
len
,
x509write_csr.c:277
Call Tree
from
0/1
examples
All items filtered out
All items filtered out
Data Use
from
0/1
examples
All items filtered out
All items filtered out
Class Tree
from
0/1
examples
All items filtered out
All items filtered out
Override Tree
from
0/1
examples
All items filtered out
All items filtered out
Implementations
from
0/1
examples
All items filtered out
All items filtered out
Instances
from
0/1
examples
Lifecycle
from
0/1
examples
All items filtered out
All items filtered out