Home
last modified time | relevance | path

Searched refs:output_buf (Results 1 – 5 of 5) sorted by relevance

/mbedtls-3.6.0/programs/pkey/
Dkey_app_writer.c99 unsigned char output_buf[16000]; in write_public_key() local
100 unsigned char *c = output_buf; in write_public_key()
103 memset(output_buf, 0, 16000); in write_public_key()
107 if ((ret = mbedtls_pk_write_pubkey_pem(key, output_buf, 16000)) != 0) { in write_public_key()
111 len = strlen((char *) output_buf); in write_public_key()
115 if ((ret = mbedtls_pk_write_pubkey_der(key, output_buf, 16000)) < 0) { in write_public_key()
120 c = output_buf + sizeof(output_buf) - len; in write_public_key()
141 unsigned char output_buf[16000]; in write_private_key() local
142 unsigned char *c = output_buf; in write_private_key()
145 memset(output_buf, 0, 16000); in write_private_key()
[all …]
Dgen_key.c129 unsigned char output_buf[16000]; in write_private_key() local
130 unsigned char *c = output_buf; in write_private_key()
133 memset(output_buf, 0, 16000); in write_private_key()
135 if ((ret = mbedtls_pk_write_key_pem(key, output_buf, 16000)) != 0) { in write_private_key()
139 len = strlen((char *) output_buf); in write_private_key()
141 if ((ret = mbedtls_pk_write_key_der(key, output_buf, 16000)) < 0) { in write_private_key()
146 c = output_buf + sizeof(output_buf) - len; in write_private_key()
/mbedtls-3.6.0/library/
Dpkwrite.c747 unsigned char output_buf[PUB_DER_MAX_BYTES]; in mbedtls_pk_write_pubkey_pem() local
750 if ((ret = mbedtls_pk_write_pubkey_der(key, output_buf, in mbedtls_pk_write_pubkey_pem()
751 sizeof(output_buf))) < 0) { in mbedtls_pk_write_pubkey_pem()
756 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_pubkey_pem()
767 unsigned char output_buf[PRV_DER_MAX_BYTES]; in mbedtls_pk_write_key_pem() local
780 if ((ret = mbedtls_pk_write_key_der(key, output_buf, sizeof(output_buf))) < 0) { in mbedtls_pk_write_key_pem()
827 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_key_pem()
/mbedtls-3.6.0/programs/x509/
Dcert_req.c115 unsigned char output_buf[4096]; in write_certificate_request() local
118 memset(output_buf, 0, 4096); in write_certificate_request()
119 if ((ret = mbedtls_x509write_csr_pem(req, output_buf, 4096, f_rng, p_rng)) < 0) { in write_certificate_request()
123 len = strlen((char *) output_buf); in write_certificate_request()
129 if (fwrite(output_buf, 1, len, f) != len) { in write_certificate_request()
Dcert_write.c213 unsigned char output_buf[4096]; in write_certificate() local
217 memset(output_buf, 0, 4096); in write_certificate()
219 ret = mbedtls_x509write_crt_der(crt, output_buf, 4096, in write_certificate()
226 output_start = output_buf + 4096 - len; in write_certificate()
228 ret = mbedtls_x509write_crt_pem(crt, output_buf, 4096, in write_certificate()
234 len = strlen((char *) output_buf); in write_certificate()
235 output_start = output_buf; in write_certificate()