Skip to content
Browse files

Includes Alon Bar-Lev's IDEA patch.

NB NO ENCRYPTION CODE INCLUDED

[#30 state:committed]

Signed-off-by: Benjamin Donnachie <benjamin@py-soft.co.uk>
  • Loading branch information...
1 parent 35756dc commit 23caa84a3ddde82207df468cb7d7c9f3d2e28fb0 @benjamin-d-zz benjamin-d-zz committed Jan 30, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 source/gnupg2/g10/seckey-cert.c
View
7 source/gnupg2/g10/seckey-cert.c
@@ -209,6 +209,13 @@ do_check( PKT_secret_key *sk, const char *tryagain_text, int mode,
csum += checksum (buffer, ndata);
gcry_mpi_release (sk->skey[i]);
+ /* Alon Bar-Lev's IDEA patch - needed as the raw key has
+ two bits which are part of the checksum and not the key */
+ if (CIPHER_ALGO_IDEA == sk->protect.algo) {
+ buffer[0] = 0;
+ buffer[1] = 0;
+ }
+
err = gcry_mpi_scan( &sk->skey[i], GCRYMPI_FMT_PGP,
buffer, ndata, &ndata );
xfree (buffer);

0 comments on commit 23caa84

Please sign in to comment.
Something went wrong with that request. Please try again.