Oh! what a miss!! Signs of excessive pressure!!! When I divide the program in multiple files, I create one of the functions like this- char *dh_sender_pub(DH *dhPar) {
char *pubinHex=NULL; DH_generate_key(dhPar); pubinHex=BN_bn2hex(dhPar->pub_key); return pubinHex; } And I was thinking if I cannot strlen on pubinHex in the main program, then how could I get the size? Now you pointed it out for me :-) On Friday, January 24, 2014 5:49 PM, "Salz, Rich" <rs...@akamai.com> wrote: Ø These built-in functions do not return the size of the binary data, so how can I get the length of the binary data? BN_num_bytes() which you already used in your initial posting? -- Principal Security Engineer Akamai Technology Cambridge, MA