[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: value is always different
From: |
Brad Hards |
Subject: |
Re: value is always different |
Date: |
Mon, 26 Apr 2010 18:38:09 +1000 |
User-agent: |
KMail/1.13.2 (Linux/2.6.32.11-99.fc12.x86_64; KDE/4.4.2; x86_64; ; ) |
On Monday 26 April 2010 05:17:22 pm Ali Khalfan wrote:
> err = gcry_md_open(&ctx,GCRY_MD_SHA256, GCRY_MD_FLAG_HMAC);
> gcry_md_setkey (ctx, key, 32);
> gcry_md_write(ctx, &plain_text,sizeof plain_text);
> unsigned char *digest = gcry_md_read (ctx, GCRY_MD_SHA256);
This looks roughly right. Can you post a minimal compilable example that shows
what the rest of the code looks like?
Brad