[pkg-gnupg-maint] Bug#789246: Bug#789246: FTBFS amd64

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Sep 15 16:53:39 UTC 2015


On Tue 2015-09-15 11:14:17 -0400, Werner Koch wrote:
> Good, that works.  However, the actual burn_cycles code is more like:
>
> static int
> burn_cycles(unsigned long count)
> {
>   char buffer[16];
>   return gcry_kdf_derive ("123456789abcdef0", 16,
>                           GCRY_KDF_ITERSALTED_S2K,
>                           GCR_MD_SHA1, "saltsalt", 8,
>                           count, buffer, 16);
> }
>
> and thus does a lot of SHA-1 operations in Libgcrypt.

Yep, i wanted the initial test to happen without libgcrypt.

Below is a new version that uses gcrypt (fixing a couple typos in
Werner's example above).  It should be compiled with:

 gcc -lgcrypt -Wall -Werror --pedantic -o test-csail test-csail.c

i'm tracking this test code in git, if anyone is interested:
  git clone git://lair.fifthhorseman.net/~dkg/789246

Kurt, can we try this out on x86-csail-01 ?

      --dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-csail.c
Type: text/x-csrc
Size: 2283 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20150915/dfd3c217/attachment-0001.c>


More information about the pkg-gnupg-maint mailing list