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
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marcus Hoffmann
nettle
Commits
ac6834a2
Commit
ac6834a2
authored
Sep 11, 2001
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* des-compat.h: Define DES_ENCRYPT and DES_DECRYPT. Bugfixes.
Rev: src/nettle/des-compat.h:1.5
parent
61dcb1e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
des-compat.h
des-compat.h
+9
-6
No files found.
des-compat.h
View file @
ac6834a2
...
...
@@ -35,9 +35,13 @@
#include "des.h"
/*
FIXME:
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 */
#define des_set_key des_compat_set_key
enum
{
DES_DECRYPT
=
0
,
DES_ENCRYPT
=
1
};
void
des_ecb3_encrypt
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
struct
des_ctx
*
k1
,
struct
des_ctx
*
k2
,
struct
des_ctx
*
k3
,
int
enc
);
...
...
@@ -54,15 +58,13 @@ des_cbc_encrypt(const uint8_t *src, uint8_t *dst, long length,
void
des_3cbc_encrypt
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
long
length
,
struct
des_ctx
*
k1
,
struct
des_ctx
*
k2
,
struct
des_ctx
*
k3
,
/* What mode is this, two iv:s? */
struct
des_ctx
*
k1
,
struct
des_ctx
*
k2
,
uint8_t
*
iv1
,
uint8_t
*
iv2
,
int
enc
);
void
des_ecb_encrypt
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
long
length
,
struct
des_ctx
*
ctx
,
uint8_t
*
iv
,
int
enc
);
struct
des_ctx
*
ctx
,
int
enc
);
void
des_ede3_cbc_encrypt
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
long
length
,
struct
des_ctx
*
k1
,
struct
des_ctx
*
k2
,
struct
des_ctx
*
k3
,
...
...
@@ -75,10 +77,11 @@ 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
des_key_sched
(
const
uint8_t
*
key
,
struct
des_ctx
*
ctx
);
int
des_is_weak_key
(
const
uint8_t
key
);
des_is_weak_key
(
const
uint8_t
*
key
);
#endif
/* NETTLE_DES_COMPAT_H_INCLUDED */
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