Fix bug which decoded elliptic curve key data wrongly.
authormdw <mdw>
Wed, 25 May 2005 13:28:21 +0000 (13:28 +0000)
committermdw <mdw>
Wed, 25 May 2005 13:28:21 +0000 (13:28 +0000)
Makefile.m4
catsign.1
key-binary.c

index 2b869f4..c462e0b 100644 (file)
@@ -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 \
index 7e78dd0..b4b2ec3 100644 (file)
--- 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
index 75cfbe7..dc8c701 100644 (file)
@@ -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 --- */