Line 0
Link Here
|
|
|
1 |
--- src/ecp_dese_bis.c.orig 2013-06-11 09:00:00 UTC |
2 |
+++ src/ecp_dese_bis.c |
3 |
@@ -89,11 +89,10 @@ DeseBisConfigure(Bund b) |
4 |
{ |
5 |
EcpState const ecp = &b->ecp; |
6 |
DeseBisInfo const des = &ecp->desebis; |
7 |
- des_cblock key; |
8 |
+ DES_cblock key; |
9 |
|
10 |
- des_check_key = FALSE; |
11 |
- des_string_to_key(ecp->key, &key); |
12 |
- des_set_key(&key, des->ks); |
13 |
+ DES_string_to_key(ecp->key, &key); |
14 |
+ DES_set_key(&key, &des->ks); |
15 |
des->xmit_seq = 0; |
16 |
des->recv_seq = 0; |
17 |
} |
18 |
@@ -204,7 +203,7 @@ DeseBisEncrypt(Bund b, Mbuf plain) |
19 |
{ |
20 |
u_char *const block = MBDATA(cypher) + DES_OVERHEAD + k; |
21 |
|
22 |
- des_cbc_encrypt(block, block, 8, des->ks, &des->xmit_ivec, TRUE); |
23 |
+ DES_cbc_encrypt(block, block, 8, &des->ks, &des->xmit_ivec, TRUE); |
24 |
memcpy(des->xmit_ivec, block, 8); |
25 |
} |
26 |
|
27 |
@@ -271,10 +270,10 @@ DeseBisDecrypt(Bund b, Mbuf cypher) |
28 |
for (k = 0; k < clen; k += 8) |
29 |
{ |
30 |
u_char *const block = MBDATA(plain) + k; |
31 |
- des_cblock next_ivec; |
32 |
+ DES_cblock next_ivec; |
33 |
|
34 |
memcpy(next_ivec, block, 8); |
35 |
- des_cbc_encrypt(block, block, 8, des->ks, &des->recv_ivec, FALSE); |
36 |
+ DES_cbc_encrypt(block, block, 8, &des->ks, &des->recv_ivec, FALSE); |
37 |
memcpy(des->recv_ivec, next_ivec, 8); |
38 |
} |
39 |
|