Lines Matching refs:c

143     unsigned char *c = buf + sizeof(buf);  in mbedtls_x509write_crt_set_basic_constraints()  local
155 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_int( &c, buf, max_pathlen ) ); in mbedtls_x509write_crt_set_basic_constraints()
157 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_bool( &c, buf, 1 ) ); in mbedtls_x509write_crt_set_basic_constraints()
160 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_x509write_crt_set_basic_constraints()
161 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509write_crt_set_basic_constraints()
174 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_subject_key_identifier() local
178 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_pk_write_pubkey( &c, buf, ctx->subject_key ) ); in mbedtls_x509write_crt_set_subject_key_identifier()
181 c = buf + sizeof(buf) - 20; in mbedtls_x509write_crt_set_subject_key_identifier()
184 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_x509write_crt_set_subject_key_identifier()
185 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_OCTET_STRING ) ); in mbedtls_x509write_crt_set_subject_key_identifier()
196 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_authority_key_identifier() local
200 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_pk_write_pubkey( &c, buf, ctx->issuer_key ) ); in mbedtls_x509write_crt_set_authority_key_identifier()
203 c = buf + sizeof(buf) - 20; in mbedtls_x509write_crt_set_authority_key_identifier()
206 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_x509write_crt_set_authority_key_identifier()
207 … MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_CONTEXT_SPECIFIC | 0 ) ); in mbedtls_x509write_crt_set_authority_key_identifier()
209 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_x509write_crt_set_authority_key_identifier()
210 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509write_crt_set_authority_key_identifier()
223 unsigned char *c; in mbedtls_x509write_crt_set_key_usage() local
230 c = buf + 4; in mbedtls_x509write_crt_set_key_usage()
233 if( ( ret = mbedtls_asn1_write_bitstring( &c, buf, &ku, 7 ) ) != 4 ) in mbedtls_x509write_crt_set_key_usage()
249 unsigned char *c; in mbedtls_x509write_crt_set_ns_cert_type() local
252 c = buf + 4; in mbedtls_x509write_crt_set_ns_cert_type()
254 if( ( ret = mbedtls_asn1_write_bitstring( &c, buf, &ns_cert_type, 8 ) ) != 4 ) in mbedtls_x509write_crt_set_ns_cert_type()
302 unsigned char *c, *c2; in mbedtls_x509write_crt_der() local
313 c = tmp_buf + sizeof( tmp_buf ); in mbedtls_x509write_crt_der()
329 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_x509_write_extensions( &c, tmp_buf, ctx->extensions ) ); in mbedtls_x509write_crt_der()
330 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, tmp_buf, len ) ); in mbedtls_x509write_crt_der()
331 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, tmp_buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509write_crt_der()
333 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, tmp_buf, len ) ); in mbedtls_x509write_crt_der()
334 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, tmp_buf, MBEDTLS_ASN1_CONTEXT_SPECIFIC | in mbedtls_x509write_crt_der()
341 tmp_buf, c - tmp_buf ) ); in mbedtls_x509write_crt_der()
342 c -= pub_len; in mbedtls_x509write_crt_der()
348 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_x509_write_names( &c, tmp_buf, ctx->subject ) ); in mbedtls_x509write_crt_der()
357 MBEDTLS_ASN1_CHK_ADD( sub_len, x509_write_time( &c, tmp_buf, ctx->not_after, in mbedtls_x509write_crt_der()
360 MBEDTLS_ASN1_CHK_ADD( sub_len, x509_write_time( &c, tmp_buf, ctx->not_before, in mbedtls_x509write_crt_der()
364 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, tmp_buf, sub_len ) ); in mbedtls_x509write_crt_der()
365 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, tmp_buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509write_crt_der()
371 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_x509_write_names( &c, tmp_buf, ctx->issuer ) ); in mbedtls_x509write_crt_der()
376 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, tmp_buf, in mbedtls_x509write_crt_der()
382 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_mpi( &c, tmp_buf, &ctx->serial ) ); in mbedtls_x509write_crt_der()
388 MBEDTLS_ASN1_CHK_ADD( sub_len, mbedtls_asn1_write_int( &c, tmp_buf, ctx->version ) ); in mbedtls_x509write_crt_der()
390 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, tmp_buf, sub_len ) ); in mbedtls_x509write_crt_der()
391 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, tmp_buf, MBEDTLS_ASN1_CONTEXT_SPECIFIC | in mbedtls_x509write_crt_der()
394 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, tmp_buf, len ) ); in mbedtls_x509write_crt_der()
395 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, tmp_buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509write_crt_der()
401 mbedtls_md( mbedtls_md_info_from_type( ctx->md_alg ), c, len, hash ); in mbedtls_x509write_crt_der()
420 memcpy( c2, c, len ); in mbedtls_x509write_crt_der()