Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
2dfae9f3
Commit
2dfae9f3
authored
Apr 04, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ecc_point_get: Allow NULL x or y.
parent
c8c37f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ChangeLog
ChangeLog
+3
-0
ecc-point.c
ecc-point.c
+4
-2
No files found.
ChangeLog
View file @
2dfae9f3
2013-04-04 Niels Möller <nisse@lysator.liu.se>
* ecc-point.c (ecc_point_get): Allow NULL x or y, ignore
corresponding coordinate.
* nettle.texinfo (Elliptic curves): Document high-level ECDSA
support.
...
...
ecc-point.c
View file @
2dfae9f3
...
...
@@ -84,6 +84,8 @@ void
ecc_point_get
(
const
struct
ecc_point
*
p
,
mpz_t
x
,
mpz_t
y
)
{
mp_size_t
size
=
p
->
ecc
->
size
;
mpz_set_n
(
x
,
p
->
p
,
size
);
mpz_set_n
(
y
,
p
->
p
+
size
,
size
);
if
(
x
)
mpz_set_n
(
x
,
p
->
p
,
size
);
if
(
y
)
mpz_set_n
(
y
,
p
->
p
+
size
,
size
);
}
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