Home
last modified time | relevance | path

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

/mbedtls-3.5.0/library/
Dx509write_crt.c181 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_int(&c, buf, in mbedtls_x509write_crt_set_basic_constraints()
184 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_bool(&c, buf, 1)); in mbedtls_x509write_crt_set_basic_constraints()
187 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_basic_constraints()
188 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, in mbedtls_x509write_crt_set_basic_constraints()
213 MBEDTLS_ASN1_CHK_ADD(len, 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, mbedtls_asn1_write_tag(&c, buf, tag)); in mbedtls_x509write_crt_set_key_identifier()
247 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_x509write_crt_set_key_identifier()
248 MBEDTLS_ASN1_CHK_ADD(len, in mbedtls_x509write_crt_set_key_identifier()
350 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 …]
Dx509_create.c242 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tagged_string(p, start, in x509_write_name()
248 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, in x509_write_name()
251 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in x509_write_name()
252 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, in x509_write_name()
256 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in x509_write_name()
257 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, in x509_write_name()
272 MBEDTLS_ASN1_CHK_ADD(len, x509_write_name(p, start, cur)); in mbedtls_x509_write_names()
276 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_x509_write_names()
277 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509_write_names()
305 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_x509_write_sig()
[all …]
Dpkwrite.c93 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in pk_write_rsa_pubkey()
94 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_CONSTRUCTED | in pk_write_rsa_pubkey()
145 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, oid_len)); in pk_write_ec_param()
180 MBEDTLS_ASN1_CHK_ADD(len, pk_write_rsa_pubkey(p, start, mbedtls_pk_rsa(*key))); in mbedtls_pk_write_pubkey()
185 MBEDTLS_ASN1_CHK_ADD(len, pk_write_ec_pubkey(p, start, mbedtls_pk_ec(*key))); in mbedtls_pk_write_pubkey()
226 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_pk_write_pubkey(&c, buf, key)); in mbedtls_pk_write_pubkey_der()
240 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in mbedtls_pk_write_pubkey_der()
241 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&c, buf, MBEDTLS_ASN1_BIT_STRING)); in mbedtls_pk_write_pubkey_der()
246 MBEDTLS_ASN1_CHK_ADD(par_len, pk_write_ec_param(&c, buf, mbedtls_pk_ec(*key))); in mbedtls_pk_write_pubkey_der()
279 MBEDTLS_ASN1_CHK_ADD(par_len, mbedtls_asn1_write_oid(&c, buf, in mbedtls_pk_write_pubkey_der()
[all …]
Dasn1write.c157 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_asn1_write_mpi()
158 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_INTEGER)); in mbedtls_asn1_write_mpi()
174 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, 0)); in mbedtls_asn1_write_null()
175 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_NULL)); in mbedtls_asn1_write_null()
186 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_raw_buffer(p, start, in mbedtls_asn1_write_oid()
188 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_asn1_write_oid()
189 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, MBEDTLS_ASN1_OID)); in mbedtls_asn1_write_oid()
202 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_null(p, start)); in mbedtls_asn1_write_algorithm_identifier()
207 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, oid_len)); in mbedtls_asn1_write_algorithm_identifier()
209 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in mbedtls_asn1_write_algorithm_identifier()
[all …]
Dx509write_csr.c258 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_x509_write_extensions(&c, buf, in x509write_csr_der_internal()
262 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
263 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
268 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
269 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
274 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
279 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
280 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
286 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&c, buf, len)); in x509write_csr_der_internal()
287 MBEDTLS_ASN1_CHK_ADD(len, in x509write_csr_der_internal()
[all …]
Decdsa.c630 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_mpi(&p, buf, s)); in ecdsa_signature_to_asn1()
631 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_mpi(&p, buf, r)); in ecdsa_signature_to_asn1()
633 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, buf, len)); in ecdsa_signature_to_asn1()
634 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, buf, in ecdsa_signature_to_asn1()
Dpk_wrap.c870 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len)); in asn1_write_mpibuf()
871 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start, in asn1_write_mpibuf()
893 MBEDTLS_ASN1_CHK_ADD(len, asn1_write_mpibuf(&p, sig + rs_len, rs_len)); in pk_ecdsa_sig_asn1_from_psa()
894 MBEDTLS_ASN1_CHK_ADD(len, asn1_write_mpibuf(&p, sig, rs_len)); in pk_ecdsa_sig_asn1_from_psa()
896 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, sig, len)); in pk_ecdsa_sig_asn1_from_psa()
897 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, sig, in pk_ecdsa_sig_asn1_from_psa()
/mbedtls-3.5.0/include/mbedtls/
Dasn1write.h29 #define MBEDTLS_ASN1_CHK_ADD(g, f) \ macro
/mbedtls-3.5.0/tests/suites/
Dtest_suite_x509write.function114 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(&p, buf, oid, oid_len));
115 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, buf, ret));
116 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, buf,
Dtest_suite_psa_crypto.function109 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(p, start, len));
110 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(p, start,
143 MBEDTLS_ASN1_CHK_ADD(len, /* pq */
145 MBEDTLS_ASN1_CHK_ADD(len, /* dq */
147 MBEDTLS_ASN1_CHK_ADD(len, /* dp */
149 MBEDTLS_ASN1_CHK_ADD(len, /* q */
151 MBEDTLS_ASN1_CHK_ADD(len, /* p != q to pass mbedtls sanity checks */
153 MBEDTLS_ASN1_CHK_ADD(len, /* d */
156 MBEDTLS_ASN1_CHK_ADD(len, /* e = 65537 */
158 MBEDTLS_ASN1_CHK_ADD(len, /* n */
[all …]