Lines Matching refs:c
228 unsigned char *c; in mbedtls_pk_write_pubkey_der() local
238 c = buf + size; in mbedtls_pk_write_pubkey_der()
240 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_pk_write_pubkey( &c, buf, key ) ); in mbedtls_pk_write_pubkey_der()
242 if( c - buf < 1 ) in mbedtls_pk_write_pubkey_der()
250 *--c = 0; in mbedtls_pk_write_pubkey_der()
253 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_pk_write_pubkey_der()
254 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_BIT_STRING ) ); in mbedtls_pk_write_pubkey_der()
260 MBEDTLS_ASN1_CHK_ADD( par_len, pk_write_ec_param( &c, buf, mbedtls_pk_ec( *key ) ) ); in mbedtls_pk_write_pubkey_der()
289 MBEDTLS_ASN1_CHK_ADD( par_len, mbedtls_asn1_write_oid( &c, buf, in mbedtls_pk_write_pubkey_der()
303 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
306 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_pk_write_pubkey_der()
307 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_pk_write_pubkey_der()
316 unsigned char *c; in mbedtls_pk_write_key_der() local
324 c = buf + size; in mbedtls_pk_write_key_der()
340 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
346 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
352 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
359 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
366 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
373 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
380 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
387 ( ret = mbedtls_asn1_write_mpi( &c, buf, &T ) ) < 0 ) in mbedtls_pk_write_key_der()
397 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_int( &c, buf, 0 ) ); in mbedtls_pk_write_key_der()
398 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_pk_write_key_der()
399 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, in mbedtls_pk_write_key_der()
423 MBEDTLS_ASN1_CHK_ADD( pub_len, pk_write_ec_pubkey( &c, buf, ec ) ); in mbedtls_pk_write_key_der()
425 if( c - buf < 1 ) in mbedtls_pk_write_key_der()
427 *--c = 0; in mbedtls_pk_write_key_der()
430 MBEDTLS_ASN1_CHK_ADD( pub_len, mbedtls_asn1_write_len( &c, buf, pub_len ) ); in mbedtls_pk_write_key_der()
431 MBEDTLS_ASN1_CHK_ADD( pub_len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_BIT_STRING ) ); in mbedtls_pk_write_key_der()
433 MBEDTLS_ASN1_CHK_ADD( pub_len, mbedtls_asn1_write_len( &c, buf, pub_len ) ); in mbedtls_pk_write_key_der()
434 MBEDTLS_ASN1_CHK_ADD( pub_len, mbedtls_asn1_write_tag( &c, buf, in mbedtls_pk_write_key_der()
439 MBEDTLS_ASN1_CHK_ADD( par_len, pk_write_ec_param( &c, buf, ec ) ); in mbedtls_pk_write_key_der()
441 MBEDTLS_ASN1_CHK_ADD( par_len, mbedtls_asn1_write_len( &c, buf, par_len ) ); in mbedtls_pk_write_key_der()
442 MBEDTLS_ASN1_CHK_ADD( par_len, mbedtls_asn1_write_tag( &c, buf, in mbedtls_pk_write_key_der()
447 MBEDTLS_ASN1_CHK_ADD( len, pk_write_ec_private( &c, buf, ec ) ); in mbedtls_pk_write_key_der()
450 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_int( &c, buf, 1 ) ); in mbedtls_pk_write_key_der()
452 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c, buf, len ) ); in mbedtls_pk_write_key_der()
453 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c, buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_pk_write_key_der()