Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Views: 549
1
#ifndef DES_H
2
#define DES_H
3
4
#define DES_KEY_SIZE 8 // 56 bits used, but must supply 64 (8 are ignored)
5
6
void des_encrypt( const unsigned char *plaintext,
7
const int plaintext_len,
8
unsigned char *ciphertext,
9
void *iv,
10
const unsigned char *key );
11
void des3_encrypt( const unsigned char *plaintext,
12
const int plaintext_len,
13
unsigned char *ciphertext,
14
void *iv,
15
const unsigned char *key );
16
void des_decrypt( const unsigned char *ciphertext,
17
const int ciphertext_len,
18
unsigned char *plaintext,
19
void *iv,
20
const unsigned char *key );
21
void des3_decrypt( const unsigned char *ciphertext,
22
const int ciphertext_len,
23
unsigned char *plaintext,
24
void *iv,
25
const unsigned char *key );
26
27
#endif
28
29