Lines Matching refs:output_buf
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()
161 if( ( ret = mbedtls_pk_write_key_pem( key, output_buf, 16000 ) ) != 0 ) in write_private_key()
164 len = strlen( (char *) output_buf ); in write_private_key()
169 if( ( ret = mbedtls_pk_write_key_der( key, output_buf, 16000 ) ) < 0 ) in write_private_key()
173 c = output_buf + sizeof(output_buf) - len - 1; in write_private_key()