On Wed, 2 Apr 2014, RAVI PRATAP Singh wrote: > My doubt is how to fill the shared_secret structure ( which is of BIGNUM > type) elements ? from the array of characters, K. You can use OpenSSL's API for this, e.g. BN_hex2bn() or BN_bin2bn() -d