Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
cc289848
Commit
cc289848
authored
23 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
Rev: src/nettle/.cvsignore:1.4 Rev: src/nettle/des-compat.h:1.6
parent
b5fbae36
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.cvsignore
+14
-0
14 additions, 0 deletions
.cvsignore
.gitignore
+14
-0
14 additions, 0 deletions
.gitignore
des-compat.h
+6
-7
6 additions, 7 deletions
des-compat.h
with
34 additions
and
7 deletions
.cvsignore
+
14
−
0
View file @
cc289848
...
@@ -10,8 +10,22 @@ config.status
...
@@ -10,8 +10,22 @@ config.status
configure
configure
desdata
desdata
keymap.h
keymap.h
nettle.aux
nettle.cp
nettle.cps
nettle.dvi
nettle.fn
nettle.html
nettle.html
nettle.info
nettle.info
nettle.ky
nettle.log
nettle.pg
nettle.ps
nettle.toc
nettle.tp
nettle.tps
nettle.vr
nettle.vrs
parity.h
parity.h
rotors.h
rotors.h
stamp-h
stamp-h
...
...
This diff is collapsed.
Click to expand it.
.gitignore
+
14
−
0
View file @
cc289848
...
@@ -42,8 +42,22 @@ core
...
@@ -42,8 +42,22 @@ core
/configure
/configure
/desdata
/desdata
/keymap.h
/keymap.h
/nettle.aux
/nettle.cp
/nettle.cps
/nettle.dvi
/nettle.fn
/nettle.html
/nettle.html
/nettle.info
/nettle.info
/nettle.ky
/nettle.log
/nettle.pg
/nettle.ps
/nettle.toc
/nettle.tp
/nettle.tps
/nettle.vr
/nettle.vrs
/parity.h
/parity.h
/rotors.h
/rotors.h
/stamp-h
/stamp-h
...
...
This diff is collapsed.
Click to expand it.
des-compat.h
+
6
−
7
View file @
cc289848
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
/* Some names collides with nettle, so we'll need some ugly symbol
/* Some names collides with nettle, so we'll need some ugly symbol
* munging */
* munging */
#define des_set_key des_
compat_set_key
#define des_set_key des_
key_sched
enum
{
DES_DECRYPT
=
0
,
DES_ENCRYPT
=
1
};
enum
{
DES_DECRYPT
=
0
,
DES_ENCRYPT
=
1
};
...
@@ -46,8 +46,11 @@ void des_ecb3_encrypt(const uint8_t *src, uint8_t *dst,
...
@@ -46,8 +46,11 @@ void des_ecb3_encrypt(const uint8_t *src, uint8_t *dst,
struct
des_ctx
*
k1
,
struct
des_ctx
*
k2
,
struct
des_ctx
*
k1
,
struct
des_ctx
*
k2
,
struct
des_ctx
*
k3
,
int
enc
);
struct
des_ctx
*
k3
,
int
enc
);
uint32_t
/* des_cbc_cksum in libdes returns a 32 bit integer, representing the
des_cbc_cksum
(
const
uint8_t
*
src
,
uint8_t
dst
,
* latter half of the output block, in some byte order. For now, lets
* just hope nobody uses thet feature, and return void instead. */
void
des_cbc_cksum
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
long
length
,
struct
des_ctx
*
ctx
,
long
length
,
struct
des_ctx
*
ctx
,
uint8_t
*
iv
);
uint8_t
*
iv
);
...
@@ -74,10 +77,6 @@ des_ede3_cbc_encrypt(const uint8_t *src, uint8_t *dst, long length,
...
@@ -74,10 +77,6 @@ des_ede3_cbc_encrypt(const uint8_t *src, uint8_t *dst, long length,
int
int
des_set_odd_parity
(
uint8_t
*
key
);
des_set_odd_parity
(
uint8_t
*
key
);
int
des_set_key
(
const
uint8_t
*
key
,
struct
des_ctx
*
ctx
);
/* What's the difference between this and des_set_key */
int
int
des_key_sched
(
const
uint8_t
*
key
,
struct
des_ctx
*
ctx
);
des_key_sched
(
const
uint8_t
*
key
,
struct
des_ctx
*
ctx
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment