From 21aac40c87e498ae0a8c4c3d0960ca298a89b54c Mon Sep 17 00:00:00 2001 From: mdw Date: Wed, 25 May 2005 13:28:21 +0000 Subject: [PATCH] Fix bug which decoded elliptic curve key data wrongly. --- Makefile.m4 | 2 +- catsign.1 | 1 + key-binary.c | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.m4 b/Makefile.m4 index 2b869f4..c462e0b 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -313,7 +313,7 @@ mpdump_LDADD = ## `install' if there are subdirectories. changequote(<, >) -install: install-exec-hook +# install: install-exec-hook install-exec-hook: @pixie="$(DESTDIR)$(bindir)/`echo pixie|sed $(transform)`"; \ if chown root $$pixie && chmod 4755 $$pixie; then \ diff --git a/catsign.1 b/catsign.1 index 7e78dd0..b4b2ec3 100644 --- a/catsign.1 +++ b/catsign.1 @@ -436,6 +436,7 @@ Read input encoded according to Produce more verbose messages. See below for the messages produced during decryption. The default verbosity level is 1. (Currently this is the most verbose setting. This might not be the case always.) +.TP .B "\-q, \-\-quiet" Produce fewer messages. .TP diff --git a/key-binary.c b/key-binary.c index 75cfbe7..dc8c701 100644 --- a/key-binary.c +++ b/key-binary.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: key-binary.c,v 1.7 2004/04/08 01:36:15 mdw Exp $ + * $Id$ * * Key binary encoding * @@ -112,7 +112,7 @@ int key_decode(const void *p, size_t sz, key_data *k) ysz = LOAD16(q + 6 + xsz); if (sz < xsz + ysz + 4) return (-1); k->u.e.x = mp_loadb(MP_NEW, q + 6, xsz); - k->u.e.y = mp_loadb(MP_NEW, q + 6 + xsz, ysz); + k->u.e.y = mp_loadb(MP_NEW, q + 8 + xsz, ysz); } break; /* --- Structured key data --- */ -- 2.11.0