Home
last modified time | relevance | path

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

/net-tools-latest/mbedtls-2.4.0/programs/pkey/
Dkey_app_writer.c110 unsigned char output_buf[16000]; in write_public_key() local
111 unsigned char *c = output_buf; in write_public_key()
114 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()
122 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()
131 c = output_buf + sizeof(output_buf) - len - 1; in write_public_key()
152 unsigned char output_buf[16000]; in write_private_key() local
153 unsigned char *c = output_buf; in write_private_key()
156 memset(output_buf, 0, 16000); in write_private_key()
[all …]
Dgen_key.c152 unsigned char output_buf[16000]; in write_private_key() local
153 unsigned char *c = output_buf; in write_private_key()
156 memset(output_buf, 0, 16000); in write_private_key()
159 if( ( ret = mbedtls_pk_write_key_pem( key, output_buf, 16000 ) ) != 0 ) in write_private_key()
162 len = strlen( (char *) output_buf ); in write_private_key()
166 if( ( ret = mbedtls_pk_write_key_der( key, output_buf, 16000 ) ) < 0 ) in write_private_key()
170 c = output_buf + sizeof(output_buf) - len; in write_private_key()
/net-tools-latest/mbedtls-2.4.0/library/
Dpkwrite.c381 unsigned char output_buf[PUB_DER_MAX_BYTES]; in mbedtls_pk_write_pubkey_pem() local
384 if( ( ret = mbedtls_pk_write_pubkey_der( key, output_buf, in mbedtls_pk_write_pubkey_pem()
385 sizeof(output_buf) ) ) < 0 ) in mbedtls_pk_write_pubkey_pem()
391 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_pubkey_pem()
403 unsigned char output_buf[PRV_DER_MAX_BYTES]; in mbedtls_pk_write_key_pem() local
407 if( ( ret = mbedtls_pk_write_key_der( key, output_buf, sizeof(output_buf) ) ) < 0 ) in mbedtls_pk_write_key_pem()
429 output_buf + sizeof(output_buf) - ret, in mbedtls_pk_write_key_pem()
Dx509write_csr.c239 unsigned char output_buf[4096]; in mbedtls_x509write_csr_pem() local
242 if( ( ret = mbedtls_x509write_csr_der( ctx, output_buf, sizeof(output_buf), in mbedtls_x509write_csr_pem()
249 output_buf + sizeof(output_buf) - ret, in mbedtls_x509write_csr_pem()
Dx509write_crt.c439 unsigned char output_buf[4096]; in mbedtls_x509write_crt_pem() local
442 if( ( ret = mbedtls_x509write_crt_der( crt, output_buf, sizeof(output_buf), in mbedtls_x509write_crt_pem()
449 output_buf + sizeof(output_buf) - ret, in mbedtls_x509write_crt_pem()
/net-tools-latest/mbedtls-2.4.0/programs/x509/
Dcert_req.c111 unsigned char output_buf[4096]; in write_certificate_request() local
114 memset( output_buf, 0, 4096 ); in write_certificate_request()
115 if( ( ret = mbedtls_x509write_csr_pem( req, output_buf, 4096, f_rng, p_rng ) ) < 0 ) in write_certificate_request()
118 len = strlen( (char *) output_buf ); in write_certificate_request()
123 if( fwrite( output_buf, 1, len, f ) != len ) in write_certificate_request()
Dcert_write.c162 unsigned char output_buf[4096]; in write_certificate() local
165 memset( output_buf, 0, 4096 ); in write_certificate()
166 if( ( ret = mbedtls_x509write_crt_pem( crt, output_buf, 4096, f_rng, p_rng ) ) < 0 ) in write_certificate()
169 len = strlen( (char *) output_buf ); in write_certificate()
174 if( fwrite( output_buf, 1, len, f ) != len ) in write_certificate()