Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
d61cc3b2
Commit
d61cc3b2
authored
Oct 11, 2013
by
Paul Bakker
Browse files
Possible naming collision in dhm_context
parent
fcc17213
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ChangeLog
ChangeLog
+1
-0
include/polarssl/dhm.h
include/polarssl/dhm.h
+1
-1
library/dhm.c
library/dhm.c
+3
-3
No files found.
ChangeLog
View file @
d61cc3b2
...
...
@@ -9,6 +9,7 @@ Bugfix
* Compile errors with POLARSSL_RSA_NO_CRT
* Header files with 'polarssl/'
* Const correctness
* Possible naming collision in dhm_context
= PolarSSL-1.3.0 released on 2013-10-01
Features
...
...
include/polarssl/dhm.h
View file @
d61cc3b2
...
...
@@ -152,7 +152,7 @@ typedef struct
mpi
RP
;
/*!< cached R^2 mod P */
mpi
Vi
;
/*!< blinding value */
mpi
Vf
;
/*!< un-blinding value */
mpi
_
X
;
/*!< previous X */
mpi
p
X
;
/*!< previous X */
}
dhm_context
;
...
...
library/dhm.c
View file @
d61cc3b2
...
...
@@ -276,9 +276,9 @@ static int dhm_update_blinding( dhm_context *ctx,
* Don't use any blinding the first time a particular X is used,
* but remember it to use blinding next time.
*/
if
(
mpi_cmp_mpi
(
&
ctx
->
X
,
&
ctx
->
_
X
)
!=
0
)
if
(
mpi_cmp_mpi
(
&
ctx
->
X
,
&
ctx
->
p
X
)
!=
0
)
{
MPI_CHK
(
mpi_copy
(
&
ctx
->
_
X
,
&
ctx
->
X
)
);
MPI_CHK
(
mpi_copy
(
&
ctx
->
p
X
,
&
ctx
->
X
)
);
MPI_CHK
(
mpi_lset
(
&
ctx
->
Vi
,
1
)
);
MPI_CHK
(
mpi_lset
(
&
ctx
->
Vf
,
1
)
);
...
...
@@ -384,7 +384,7 @@ cleanup:
*/
void
dhm_free
(
dhm_context
*
ctx
)
{
mpi_free
(
&
ctx
->
_
X
);
mpi_free
(
&
ctx
->
Vf
);
mpi_free
(
&
ctx
->
Vi
);
mpi_free
(
&
ctx
->
p
X
);
mpi_free
(
&
ctx
->
Vf
);
mpi_free
(
&
ctx
->
Vi
);
mpi_free
(
&
ctx
->
RP
);
mpi_free
(
&
ctx
->
K
);
mpi_free
(
&
ctx
->
GY
);
mpi_free
(
&
ctx
->
GX
);
mpi_free
(
&
ctx
->
X
);
mpi_free
(
&
ctx
->
G
);
mpi_free
(
&
ctx
->
P
);
...
...
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