Lines Matching refs:buf
90 unsigned char buf[4]; in mbedtls_x509write_csr_set_key_usage() local
94 c = buf + 4; in mbedtls_x509write_csr_set_key_usage()
96 if( ( ret = mbedtls_asn1_write_bitstring( &c, buf, &key_usage, 7 ) ) != 4 ) in mbedtls_x509write_csr_set_key_usage()
101 buf, 4 ); in mbedtls_x509write_csr_set_key_usage()
111 unsigned char buf[4]; in mbedtls_x509write_csr_set_ns_cert_type() local
115 c = buf + 4; in mbedtls_x509write_csr_set_ns_cert_type()
117 if( ( ret = mbedtls_asn1_write_bitstring( &c, buf, &ns_cert_type, 8 ) ) != 4 ) in mbedtls_x509write_csr_set_ns_cert_type()
122 buf, 4 ); in mbedtls_x509write_csr_set_ns_cert_type()
129 int mbedtls_x509write_csr_der( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_der() argument
212 c2 = buf + size; in mbedtls_x509write_csr_der()
213 MBEDTLS_ASN1_CHK_ADD( sig_and_oid_len, mbedtls_x509_write_sig( &c2, buf, in mbedtls_x509write_csr_der()
216 if( len > (size_t)( c2 - buf ) ) in mbedtls_x509write_csr_der()
223 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( &c2, buf, len ) ); in mbedtls_x509write_csr_der()
224 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( &c2, buf, MBEDTLS_ASN1_CONSTRUCTED | in mbedtls_x509write_csr_der()
234 int mbedtls_x509write_csr_pem( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_pem() argument
250 ret, buf, size, &olen ) ) != 0 ) in mbedtls_x509write_csr_pem()