Ali Khalfan wrote: > The full code is just a few lines more I'll just post it all...., seems > some sort of randomization is being added.......thanks for your help > gcry_md_write(ctx, &plain_text,sizeof plain_text); Be careful with pointers... Here "plain_text" should be used instead of "&plain_text". regards, Nikos