Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
9dd324aa
Commit
9dd324aa
authored
Sep 05, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
z85 encoding buffer overrun
parent
0a926147
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test_security_curve.cpp
tests/test_security_curve.cpp
+1
-1
curve_keygen.c
tools/curve_keygen.c
+1
-1
No files found.
tests/test_security_curve.cpp
View file @
9dd324aa
...
@@ -53,7 +53,7 @@ static void zap_handler (void *ctx)
...
@@ -53,7 +53,7 @@ static void zap_handler (void *ctx)
int
size
=
zmq_recv
(
zap
,
client_key
,
32
,
0
);
int
size
=
zmq_recv
(
zap
,
client_key
,
32
,
0
);
assert
(
size
==
32
);
assert
(
size
==
32
);
char
client_key_text
[
4
0
];
char
client_key_text
[
4
1
];
Z85_encode
(
client_key_text
,
client_key
,
32
);
Z85_encode
(
client_key_text
,
client_key
,
32
);
assert
(
streq
(
version
,
"1.0"
));
assert
(
streq
(
version
,
"1.0"
));
...
...
tools/curve_keygen.c
View file @
9dd324aa
...
@@ -56,7 +56,7 @@ int main (void)
...
@@ -56,7 +56,7 @@ int main (void)
int
rc
=
crypto_box_keypair
(
public_key
,
secret_key
);
int
rc
=
crypto_box_keypair
(
public_key
,
secret_key
);
assert
(
rc
==
0
);
assert
(
rc
==
0
);
char
encoded
[
4
0
];
char
encoded
[
4
1
];
Z85_encode
(
encoded
,
public_key
,
32
);
Z85_encode
(
encoded
,
public_key
,
32
);
puts
(
"
\n
== CURVE PUBLIC KEY =="
);
puts
(
"
\n
== CURVE PUBLIC KEY =="
);
puts
(
encoded
);
puts
(
encoded
);
...
...
Write
Preview
Markdown
is supported
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