Searched refs:output_buf (Results 1 – 5 of 5) sorted by relevance
/mbedtls-3.6.0/programs/pkey/ |
D | key_app_writer.c | 99 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 …]
|
D | gen_key.c | 129 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/ |
D | pkwrite.c | 747 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/ |
D | cert_req.c | 115 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()
|
D | cert_write.c | 213 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()
|