Как преобразовать следующий Pubkey в кодированный открытый ключ?#include
#include
uint8_t *pubkey = NULL;
size_t len = 0;
get_pubkey_function(&pubkey, &len);
printf(pubkey);
/* this step will print out
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE+GmnZ1UZqKfa81Yh0CG6huQPhYON
Q0W7AE4whuX+oUOg+BewYSOLUwj5zfwRB3i7T07HoltPfAOYeHI57Oe7jA==
-----END PUBLIC KEY-----
*/
Подробнее здесь: https://stackoverflow.com/questions/751 ... in-openssl