Home
last modified time | relevance | path

Searched refs:MBEDTLS_ASN1_CHK_ADD (Results 1 – 11 of 11) sorted by relevance

/mbedtls-3.7.0/library/
Dx509write_crt.c177 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_int(&c, buf, in mbedtls_x509write_crt_set_basic_constraints()
180 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_bool(&c, buf, 1)); in mbedtls_x509write_crt_set_basic_constraints()
183 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_basic_constraints()
184 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, in mbedtls_x509write_crt_set_basic_constraints()
209 MBEDTLS_ASN1_CHK_ADD(len, in mbedtls_x509write_crt_set_key_identifier()
239 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_key_identifier()
240 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, tag)); in mbedtls_x509write_crt_set_key_identifier()
243 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_key_identifier()
244 MBEDTLS_ASN1_CHK_ADD(len, in mbedtls_x509write_crt_set_key_identifier()
346 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_raw_buffer(&c, buf, ext->buf.p, ext->buf.len)); in mbedtls_x509write_crt_set_ext_key_usage()
[all …]
Dpkwrite.c234 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, oid_len)); in pk_write_ec_param()
265 MBEDTLS_ASN1_CHK_ADD(len, pk_write_ec_private(p, buf, pk)); in pk_write_ec_rfc8410_der()
266 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, buf, len)); in pk_write_ec_rfc8410_der()
267 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, buf, MBEDTLS_ASN1_OCTET_STRING)); in pk_write_ec_rfc8410_der()
274 MBEDTLS_ASN1_CHK_ADD(len, in pk_write_ec_rfc8410_der()
278 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_int(p, buf, 0)); in pk_write_ec_rfc8410_der()
280 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, buf, len)); in pk_write_ec_rfc8410_der()
281 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, buf, MBEDTLS_ASN1_CONSTRUCTED | in pk_write_ec_rfc8410_der()
307 MBEDTLS_ASN1_CHK_ADD(pub_len, pk_write_ec_pubkey(p, buf, pk)); in pk_write_ec_der()
316 MBEDTLS_ASN1_CHK_ADD(pub_len, mbedtls_asn1_write_len(p, buf, pub_len)); in pk_write_ec_der()
[all …]
Dx509write_csr.c153 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_x509_write_extensions(&c, buf, in x509write_csr_der_internal()
157 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
158 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
163 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
164 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
169 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
174 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
175 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
181 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
182 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
[all …]
Dx509_create.c424 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tagged_string(p, start, in x509_write_name()
430 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, in x509_write_name()
433 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in x509_write_name()
434 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, in x509_write_name()
438 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in x509_write_name()
439 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, in x509_write_name()
454 MBEDTLS_ASN1_CHK_ADD(len, x509_write_name(p, start, cur)); in mbedtls_x509_write_names()
458 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_x509_write_names()
459 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509_write_names()
489 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_x509_write_sig()
[all …]
Dasn1write.c76 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_asn1_write_len_and_tag()
77 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, tag)); in mbedtls_asn1_write_len_and_tag()
153 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_raw_buffer(p, start, in mbedtls_asn1_write_oid()
174 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_null(p, start)); in mbedtls_asn1_write_algorithm_identifier_ext()
180 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, oid_len)); in mbedtls_asn1_write_algorithm_identifier_ext()
240 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_raw_buffer(p, start, in mbedtls_asn1_write_tagged_string()
345 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_raw_buffer(p, start, buf, size)); in mbedtls_asn1_write_octet_string()
Dpsa_util.c427 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, der_buf_start, len)); in convert_raw_to_der_single_int()
428 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, der_buf_start, MBEDTLS_ASN1_INTEGER)); in convert_raw_to_der_single_int()
469 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, der, len)); in mbedtls_ecdsa_raw_to_der()
470 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, der, in mbedtls_ecdsa_raw_to_der()
Decdsa.c618 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_mpi(&p, buf, s)); in ecdsa_signature_to_asn1()
619 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_mpi(&p, buf, r)); in ecdsa_signature_to_asn1()
621 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, buf, len)); in ecdsa_signature_to_asn1()
622 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, buf, in ecdsa_signature_to_asn1()
Drsa.c362 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_int(p, start, 0)); in mbedtls_rsa_write_key()
363 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_rsa_write_key()
364 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, in mbedtls_rsa_write_key()
407 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_rsa_write_pubkey()
408 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_rsa_write_pubkey()
/mbedtls-3.7.0/include/mbedtls/
Dasn1write.h17 #define MBEDTLS_ASN1_CHK_ADD(g, f) \ macro
/mbedtls-3.7.0/tests/suites/
Dtest_suite_x509write.function113 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(&p, buf, oid, oid_len));
114 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, buf, ret));
115 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, buf,
Dtest_suite_psa_crypto.function113 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len));
114 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start,
147 MBEDTLS_ASN1_CHK_ADD(len, /* pq */
149 MBEDTLS_ASN1_CHK_ADD(len, /* dq */
151 MBEDTLS_ASN1_CHK_ADD(len, /* dp */
153 MBEDTLS_ASN1_CHK_ADD(len, /* q */
155 MBEDTLS_ASN1_CHK_ADD(len, /* p != q to pass mbedtls sanity checks */
157 MBEDTLS_ASN1_CHK_ADD(len, /* d */
160 MBEDTLS_ASN1_CHK_ADD(len, /* e = 65537 */
162 MBEDTLS_ASN1_CHK_ADD(len, /* n */
[all …]