Searched refs:output_buf (Results 1 – 7 of 7) sorted by relevance
/net-tools-latest/mbedtls-2.4.0/programs/pkey/ |
D | key_app_writer.c | 110 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 …]
|
D | gen_key.c | 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() 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/ |
D | pkwrite.c | 381 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()
|
D | x509write_csr.c | 239 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()
|
D | x509write_crt.c | 439 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/ |
D | cert_req.c | 111 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()
|
D | cert_write.c | 162 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()
|