Bug fix for keygeneration.

This commit is contained in:
NIIBE Yutaka
2017-10-31 17:10:03 +09:00
parent 1022534c02
commit 660aaeb04b
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2017-10-31 NIIBE Yutaka <gniibe@fsij.org>
* src/openpgp-do.c (gpg_do_keygen): Bug fix for memory alignment.
2017-10-24 NIIBE Yutaka <gniibe@fsij.org>
* tests/card_reader.py (CardReader.ccid_power_on): Setting

View File

@@ -2067,10 +2067,10 @@ gpg_do_keygen (uint8_t *buf)
const uint8_t *prv;
const uint8_t *rnd;
int r = 0;
#define p_q buf
#define d buf
#define d1 (&buf[64])
#define pubkey (&buf[256])
#define p_q (&buf[3])
#define d (&buf[3])
#define d1 (&buf[3+64])
#define pubkey (&buf[3+256])
DEBUG_INFO ("Keygen\r\n");
DEBUG_BYTE (kk_byte);