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

(rsa_keypair_to_sexp): Use %0s rather than %z, when

formatting s-expressions.

Rev: src/nettle/rsa2sexp.c:1.4
parent b4142547
......@@ -39,13 +39,13 @@ rsa_keypair_to_sexp(struct nettle_buffer *buffer,
if (priv)
return sexp_format(buffer,
"private-key", "rsa", "n", pub->n, "e", pub->e,
"d", priv->d, "p", priv->p, "q", priv->q,
"a", priv->a, "b", priv->b, "c", priv->c);
return sexp_format(buffer, "(%z(%z(%z%b)(%z%b)))",
return sexp_format(buffer, "(%0s(%0s(%0s%b)(%0s%b)))",
"public-key", "rsa", "n", pub->n, "e", pub->e);
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