Home
last modified time | relevance | path

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

/openthread-3.5.0/third_party/mbedtls/repo/programs/pkey/
Dkey_app_writer.c116 unsigned char output_buf[16000]; in write_public_key() local
117 unsigned char *c = output_buf; in write_public_key()
120 memset(output_buf, 0, 16000); in write_public_key()
125 if( ( ret = mbedtls_pk_write_pubkey_pem( key, output_buf, 16000 ) ) != 0 ) in write_public_key()
128 len = strlen( (char *) output_buf ); in write_public_key()
133 if( ( ret = mbedtls_pk_write_pubkey_der( key, output_buf, 16000 ) ) < 0 ) in write_public_key()
137 c = output_buf + sizeof(output_buf) - len; in write_public_key()
158 unsigned char output_buf[16000]; in write_private_key() local
159 unsigned char *c = output_buf; in write_private_key()
162 memset(output_buf, 0, 16000); in write_private_key()
[all …]
Dgen_key.c156 unsigned char output_buf[16000]; in write_private_key() local
157 unsigned char *c = output_buf; in write_private_key()
160 memset(output_buf, 0, 16000); in write_private_key()
163 if( ( ret = mbedtls_pk_write_key_pem( key, output_buf, 16000 ) ) != 0 ) in write_private_key()
166 len = strlen( (char *) output_buf ); in write_private_key()
170 if( ( ret = mbedtls_pk_write_key_der( key, output_buf, 16000 ) ) < 0 ) in write_private_key()
174 c = output_buf + sizeof(output_buf) - len; in write_private_key()
/openthread-3.5.0/third_party/mbedtls/repo/library/
Dpkwrite.c559 unsigned char output_buf[PUB_DER_MAX_BYTES]; in mbedtls_pk_write_pubkey_pem() local
565 if( ( ret = mbedtls_pk_write_pubkey_der( key, output_buf, in mbedtls_pk_write_pubkey_pem()
566 sizeof(output_buf) ) ) < 0 ) in mbedtls_pk_write_pubkey_pem()
572 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_pubkey_pem()
584 unsigned char output_buf[PRV_DER_MAX_BYTES]; in mbedtls_pk_write_key_pem() local
591 if( ( ret = mbedtls_pk_write_key_der( key, output_buf, sizeof(output_buf) ) ) < 0 ) in mbedtls_pk_write_key_pem()
613 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_key_pem()
/openthread-3.5.0/third_party/mbedtls/repo/programs/x509/
Dcert_req.c131 unsigned char output_buf[4096]; in write_certificate_request() local
134 memset( output_buf, 0, 4096 ); in write_certificate_request()
135 if( ( ret = mbedtls_x509write_csr_pem( req, output_buf, 4096, f_rng, p_rng ) ) < 0 ) in write_certificate_request()
138 len = strlen( (char *) output_buf ); in write_certificate_request()
143 if( fwrite( output_buf, 1, len, f ) != len ) in write_certificate_request()
Dcert_write.c192 unsigned char output_buf[4096]; in write_certificate() local
195 memset( output_buf, 0, 4096 ); in write_certificate()
196 if( ( ret = mbedtls_x509write_crt_pem( crt, output_buf, 4096, in write_certificate()
200 len = strlen( (char *) output_buf ); in write_certificate()
205 if( fwrite( output_buf, 1, len, f ) != len ) in write_certificate()