chiark / gitweb /
keyexch: Simplify key-exchange protocol.
[tripe] / keymgmt.c
index f645d1565a1de17fe7bbbb5374ae27b2513f8f36..edd31b2a443b7bc52e59637190390550e479a2de 100644 (file)
--- a/keymgmt.c
+++ b/keymgmt.c
@@ -36,6 +36,7 @@ group *gg;
 mp *kpriv;
 ge *kpub;
 algswitch algs;
+size_t indexsz;
 
 /*----- Static variables --------------------------------------------------*/
 
@@ -403,6 +404,7 @@ tymatch:;
     G_DESTROY(g, kpub);
   kpub = G_CREATE(g);
   G_EXP(g, kpub, g->g, x);
+  indexsz = mp_octets(g->r);
 
   /* --- Dump out the group --- */