* (c) 2004 Straylight/Edgeware
*/
-/*----- Licensing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
*
* This file is part of Catacomb.
*
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
- *
+ *
* Catacomb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Library General Public
* License along with Catacomb; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
ge *y;
} dh_encctx;
-static dh_encctx *dh_doinit(key *k, const gprime_param *gp, mp *y,
+static dh_encctx *dh_doinit(key *k, const gprime_param *gp, mp *y,
group *(*makegroup)(const gprime_param *),
const char *what)
{
ge *y = G_CREATE(de->g);
size_t n = de->g->noctets;
buf b;
-
+
G_EXP(de->g, x, de->g->g, r);
G_EXP(de->g, y, de->y, r);
dstr_ensure(d, n);
die(EXIT_FAILURE, "encryption scheme (KDF) `%s' not found in key `%s'",
q, t.buf);
}
-
+
dstr_reset(&d);
if ((q = key_getattr(0, k, "mac")) == 0) {
dstr_putf(&d, "%s-hmac", kk->h->name);