Searched refs:output_buf (Results 1 – 5 of 5) sorted by relevance
/mbedtls-3.5.0/programs/pkey/ |
D | key_app_writer.c | 111 unsigned char output_buf[16000]; in write_public_key() local 112 unsigned char *c = output_buf; in write_public_key() 115 memset(output_buf, 0, 16000); in write_public_key() 119 if ((ret = mbedtls_pk_write_pubkey_pem(key, output_buf, 16000)) != 0) { in write_public_key() 123 len = strlen((char *) output_buf); in write_public_key() 127 if ((ret = mbedtls_pk_write_pubkey_der(key, output_buf, 16000)) < 0) { in write_public_key() 132 c = output_buf + sizeof(output_buf) - len; in write_public_key() 153 unsigned char output_buf[16000]; in write_private_key() local 154 unsigned char *c = output_buf; in write_private_key() 157 memset(output_buf, 0, 16000); in write_private_key() [all …]
|
D | gen_key.c | 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() 147 if ((ret = mbedtls_pk_write_key_pem(key, output_buf, 16000)) != 0) { in write_private_key() 151 len = strlen((char *) output_buf); in write_private_key() 153 if ((ret = mbedtls_pk_write_key_der(key, output_buf, 16000)) < 0) { in write_private_key() 158 c = output_buf + sizeof(output_buf) - len; in write_private_key()
|
/mbedtls-3.5.0/library/ |
D | pkwrite.c | 486 unsigned char output_buf[PUB_DER_MAX_BYTES]; in mbedtls_pk_write_pubkey_pem() local 489 if ((ret = mbedtls_pk_write_pubkey_der(key, output_buf, in mbedtls_pk_write_pubkey_pem() 490 sizeof(output_buf))) < 0) { in mbedtls_pk_write_pubkey_pem() 495 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_pubkey_pem() 506 unsigned char output_buf[PRV_DER_MAX_BYTES]; in mbedtls_pk_write_key_pem() local 510 if ((ret = mbedtls_pk_write_key_der(key, output_buf, sizeof(output_buf))) < 0) { in mbedtls_pk_write_key_pem() 529 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_key_pem()
|
/mbedtls-3.5.0/programs/x509/ |
D | cert_req.c | 135 unsigned char output_buf[4096]; in write_certificate_request() local 138 memset(output_buf, 0, 4096); in write_certificate_request() 139 if ((ret = mbedtls_x509write_csr_pem(req, output_buf, 4096, f_rng, p_rng)) < 0) { in write_certificate_request() 143 len = strlen((char *) output_buf); in write_certificate_request() 149 if (fwrite(output_buf, 1, len, f) != len) { in write_certificate_request()
|
D | cert_write.c | 215 unsigned char output_buf[4096]; in write_certificate() local 219 memset(output_buf, 0, 4096); in write_certificate() 221 ret = mbedtls_x509write_crt_der(crt, output_buf, 4096, in write_certificate() 228 output_start = output_buf + 4096 - len; in write_certificate() 230 ret = mbedtls_x509write_crt_pem(crt, output_buf, 4096, in write_certificate() 236 len = strlen((char *) output_buf); in write_certificate() 237 output_start = output_buf; in write_certificate()
|