summaryrefslogtreecommitdiff
path: root/des-compat.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2001-09-14 13:47:04 +0200
committerNiels Möller <nisse@lysator.liu.se>2001-09-14 13:47:04 +0200
commitcc289848ad99a03a63668eb58f5a80b8b164e2c9 (patch)
tree9afe441d192a71a4dddba301182cdd05ae708301 /des-compat.h
parentb5fbae36ae504d01932380319c85f134d2329aad (diff)
downloadnettle-cc289848ad99a03a63668eb58f5a80b8b164e2c9.tar.gz
*** empty log message ***
Rev: src/nettle/.cvsignore:1.4 Rev: src/nettle/des-compat.h:1.6
Diffstat (limited to 'des-compat.h')
-rw-r--r--des-compat.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/des-compat.h b/des-compat.h
index b25312ab..0cc16ee6 100644
--- a/des-compat.h
+++ b/des-compat.h
@@ -38,7 +38,7 @@
/* Some names collides with nettle, so we'll need some ugly symbol
* munging */
-#define des_set_key des_compat_set_key
+#define des_set_key des_key_sched
enum { DES_DECRYPT = 0, DES_ENCRYPT = 1 };
@@ -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 *k3, int enc);
-uint32_t
-des_cbc_cksum(const uint8_t *src, uint8_t dst,
+/* des_cbc_cksum in libdes returns a 32 bit integer, representing the
+ * 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,
uint8_t *iv);
@@ -75,10 +78,6 @@ int
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