Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brian Smith
nettle
Commits
a38808d6
Commit
a38808d6
authored
Dec 04, 2002
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
rsa2sexp.c
View file @
a38808d6
...
...
@@ -39,13 +39,13 @@ rsa_keypair_to_sexp(struct nettle_buffer *buffer,
{
if
(
priv
)
return
sexp_format
(
buffer
,
"(%
z(%z(%z
%b)(%
z
%b)(%
z
%b)"
"(%
z
%b)(%
z
%b)(%
z
%b)(%
z
%b)(%
z
%b)))"
,
"(%
0s(%0s(%0s
%b)(%
0s
%b)(%
0s
%b)"
"(%
0s
%b)(%
0s
%b)(%
0s
%b)(%
0s
%b)(%
0s
%b)))"
,
"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
);
else
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment