Added
Link Here
|
1 |
--- examples/nettle-openssl.c.orig Fri Nov 8 16:05:20 2002 |
2 |
+++ examples/nettle-openssl.c Thu May 1 12:52:10 2003 |
3 |
@@ -93,7 +93,7 @@ |
4 |
openssl_des_set_key(void *ctx, unsigned length, const uint8_t *key) |
5 |
{ |
6 |
assert(length == 8); |
7 |
- des_key_sched((char *) key, ctx); |
8 |
+ des_key_sched((const_DES_cblock *)key, ctx); |
9 |
} |
10 |
|
11 |
#define DES_BLOCK_SIZE 8 |
12 |
@@ -105,7 +105,7 @@ |
13 |
assert (!(length % DES_BLOCK_SIZE)); |
14 |
while (length) |
15 |
{ |
16 |
- des_ecb_encrypt((char *) src, (char *) dst, ctx, DES_ENCRYPT); |
17 |
+ des_ecb_encrypt((const_DES_cblock *)src, (DES_cblock *)dst, ctx, DES_ENCRYPT); |
18 |
length -= DES_BLOCK_SIZE; |
19 |
dst += DES_BLOCK_SIZE; |
20 |
src += DES_BLOCK_SIZE; |
21 |
@@ -119,7 +119,7 @@ |
22 |
assert (!(length % DES_BLOCK_SIZE)); |
23 |
while (length) |
24 |
{ |
25 |
- des_ecb_encrypt((char *) src, (char *) dst, ctx, DES_DECRYPT); |
26 |
+ des_ecb_encrypt((const_DES_cblock *) src, (DES_cblock *) dst, ctx, DES_DECRYPT); |
27 |
length -= DES_BLOCK_SIZE; |
28 |
dst += DES_BLOCK_SIZE; |
29 |
src += DES_BLOCK_SIZE; |