Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b3be5bcd
Commit
b3be5bcd
authored
Sep 26, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Cast-qual warnings fix.
parent
1e1d1073
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
mpi.c
dlls/rsaenh/mpi.c
+1
-1
rsa.c
dlls/rsaenh/rsa.c
+2
-2
tomcrypt.h
dlls/rsaenh/tomcrypt.h
+1
-1
No files found.
dlls/rsaenh/mpi.c
View file @
b3be5bcd
...
...
@@ -3331,7 +3331,7 @@ error:
/* reads an unsigned char array, assumes the msb is stored first [big endian] */
int
mp_read_unsigned_bin
(
mp_int
*
a
,
unsigned
char
*
b
,
int
c
)
mp_read_unsigned_bin
(
mp_int
*
a
,
const
unsigned
char
*
b
,
int
c
)
{
int
res
;
...
...
dlls/rsaenh/rsa.c
View file @
b3be5bcd
...
...
@@ -196,8 +196,8 @@ int rsa_exptmod(const unsigned char *in, unsigned long inlen,
}
/* init and copy into tmp */
if
((
err
=
mp_init_multi
(
&
tmp
,
&
tmpa
,
&
tmpb
,
NULL
))
!=
MP_OKAY
)
{
return
mpi_to_ltc_error
(
err
);
}
if
((
err
=
mp_read_unsigned_bin
(
&
tmp
,
(
unsigned
char
*
)
in
,
(
int
)
inlen
))
!=
MP_OKAY
)
{
goto
error
;
}
if
((
err
=
mp_init_multi
(
&
tmp
,
&
tmpa
,
&
tmpb
,
NULL
))
!=
MP_OKAY
)
{
return
mpi_to_ltc_error
(
err
);
}
if
((
err
=
mp_read_unsigned_bin
(
&
tmp
,
in
,
(
int
)
inlen
))
!=
MP_OKAY
)
{
goto
error
;
}
/* sanity check on the input */
if
(
mp_cmp
(
&
key
->
N
,
&
tmp
)
==
MP_LT
)
{
...
...
dlls/rsaenh/tomcrypt.h
View file @
b3be5bcd
...
...
@@ -545,7 +545,7 @@ int mp_prime_random_ex(mp_int *a, int t, int size, int flags, ltm_prime_callback
int
mp_count_bits
(
mp_int
*
a
);
int
mp_unsigned_bin_size
(
mp_int
*
a
);
int
mp_read_unsigned_bin
(
mp_int
*
a
,
unsigned
char
*
b
,
int
c
);
int
mp_read_unsigned_bin
(
mp_int
*
a
,
const
unsigned
char
*
b
,
int
c
);
int
mp_to_unsigned_bin
(
mp_int
*
a
,
unsigned
char
*
b
);
int
mp_signed_bin_size
(
mp_int
*
a
);
...
...
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