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
45c5b11f
Commit
45c5b11f
authored
Aug 22, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Constify some variables.
parent
acd48e5b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
62 deletions
+61
-62
des.c
dlls/rsaenh/des.c
+4
-5
mpi.c
dlls/rsaenh/mpi.c
+0
-0
tomcrypt.h
dlls/rsaenh/tomcrypt.h
+57
-57
No files found.
dlls/rsaenh/des.c
View file @
45c5b11f
...
...
@@ -1450,7 +1450,7 @@ int des3_setup(const unsigned char *key, int keylen, int num_rounds, des3_key *d
return
CRYPT_OK
;
}
void
des_ecb_encrypt
(
const
unsigned
char
*
pt
,
unsigned
char
*
ct
,
des_key
*
des
)
void
des_ecb_encrypt
(
const
unsigned
char
*
pt
,
unsigned
char
*
ct
,
const
des_key
*
des
)
{
ulong32
work
[
2
];
LOAD32H
(
work
[
0
],
pt
+
0
);
...
...
@@ -1460,7 +1460,7 @@ void des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, des_key *des)
STORE32H
(
work
[
1
],
ct
+
4
);
}
void
des_ecb_decrypt
(
const
unsigned
char
*
ct
,
unsigned
char
*
pt
,
des_key
*
des
)
void
des_ecb_decrypt
(
const
unsigned
char
*
ct
,
unsigned
char
*
pt
,
const
des_key
*
des
)
{
ulong32
work
[
2
];
LOAD32H
(
work
[
0
],
ct
+
0
);
...
...
@@ -1470,10 +1470,9 @@ void des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, des_key *des)
STORE32H
(
work
[
1
],
pt
+
4
);
}
void
des3_ecb_encrypt
(
const
unsigned
char
*
pt
,
unsigned
char
*
ct
,
des3_key
*
des3
)
void
des3_ecb_encrypt
(
const
unsigned
char
*
pt
,
unsigned
char
*
ct
,
const
des3_key
*
des3
)
{
ulong32
work
[
2
];
LOAD32H
(
work
[
0
],
pt
+
0
);
LOAD32H
(
work
[
1
],
pt
+
4
);
desfunc
(
work
,
des3
->
ek
[
0
]);
...
...
@@ -1483,7 +1482,7 @@ void des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, des3_key *des3
STORE32H
(
work
[
1
],
ct
+
4
);
}
void
des3_ecb_decrypt
(
const
unsigned
char
*
ct
,
unsigned
char
*
pt
,
des3_key
*
des3
)
void
des3_ecb_decrypt
(
const
unsigned
char
*
ct
,
unsigned
char
*
pt
,
const
des3_key
*
des3
)
{
ulong32
work
[
2
];
LOAD32H
(
work
[
0
],
ct
+
0
);
...
...
dlls/rsaenh/mpi.c
View file @
45c5b11f
This diff is collapsed.
Click to expand it.
dlls/rsaenh/tomcrypt.h
View file @
45c5b11f
This diff is collapsed.
Click to expand it.
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