Commit f8e68afd authored by Niels Möller's avatar Niels Möller
Browse files

* src/abstract_crypto.h (signer): Changed the conventions for

SIGNER_PUBLIC(). Now returns ( <pub-sig-alg-id> <s-expr>* ), not
<public-key>.
* src/dsa.c (make_dsa_public_key): Updated for the new convention.
* src/rsa.c (do_rsa_public_key): Likewise.

Rev: src/dsa.c:1.21
parent f6f45cbc
......@@ -239,13 +239,12 @@ do_dsa_sign_spki(struct signer *c,
struct sexp *
make_dsa_public_key(struct dsa_public *dsa)
{
return sexp_l(2, SA(PUBLIC_KEY),
sexp_l(5, SA(DSA),
sexp_l(2, SA(P), sexp_un(dsa->p), -1),
sexp_l(2, SA(Q), sexp_un(dsa->q), -1),
sexp_l(2, SA(G), sexp_un(dsa->g), -1),
sexp_l(2, SA(Y), sexp_un(dsa->y), -1),
-1), -1);
return sexp_l(5, SA(DSA),
sexp_l(2, SA(P), sexp_un(dsa->p), -1),
sexp_l(2, SA(Q), sexp_un(dsa->q), -1),
sexp_l(2, SA(G), sexp_un(dsa->g), -1),
sexp_l(2, SA(Y), sexp_un(dsa->y), -1),
-1);
}
static struct sexp *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment