Ah I see!
Now it makes sense hehe!
Thank you,
On Tue, May 15, 2012 at 4:57 PM, Matt Caswell (fr...@baggins.org) <
fr...@baggins.org> wrote:
> On 15/05/12 20:21, Fábio Resner wrote:
>
>> I don`t know if this is the correct place to make this conceptual
>> question but h
> if(abuf)
> free(abuf);
> if(bbuf)
> free(bbuf);
>
> EC_KEY_free(ecdh);
> EC_KEY_free(ecdh2);
>
>
> printf("To the end");
>
> return 0;
> }
>
> On Tue, May 15, 2012 at 12:09 PM, Matt Caswell (fr...@baggin
Hi,
I'm trying to write an app to generate public/private/shared key for ECDH.
Here is what I was able to build based on examples:
#include
#define ECDH_SIZE 67
int main() {
EC_KEY *ecdh = EC_KEY_new();
const EC_POINT *point = NULL;
EC_POINT *point2;
const EC_GROUP *group;
// const void *pub