This file is indexed.

/usr/include/uclmmbase/qfDES.h is in libuclmmbase1-dev 1.2.16.0-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*****************************************************************************




Saleem N. Bhatti
February 1993
*****************************************************************************/

#if !defined(_qfDES_h_)
#define      _qfDES_h_

#if defined(__cplusplus)
extern "C" {
#endif

/* what */
typedef enum {qfDES_encrypt, qfDES_decrypt} QFDES_what;

/* mode */
typedef enum {qfDES_ecb, qfDES_cbc, qfDES_cfb, qfDES_ofb} QFDES_mode;

/* parity */
typedef enum {qfDES_even, qfDES_odd} QFDES_parity;

/* key/IV generation */
typedef enum {qfDES_key, qfDES_iv} QFDES_generate;


/* This does it all */
int qfDES (unsigned char *key, unsigned char *data, unsigned int size, const QFDES_what what, const QFDES_mode mode, unsigned char *initVec);

/* Handy macros */
#define qfDES_ECB_e(_key, _data, _size) qfDES(_key, _data, _size, qfDES_encrypt, qfDES_ecb, (unsigned char *) 0)
#define qfDES_ECB_d(_key, _data, _size) qfDES(_key, _data, _size, qfDES_decrypt, qfDES_ecb, (unsigned char *) 0)

#define qfDES_CBC_e(_key, _data, _size, _initVec) qfDES(_key, _data, _size, qfDES_encrypt, qfDES_cbc, _initVec)
#define qfDES_CBC_d(_key, _data, _size, _initVec) qfDES(_key, _data, _size, qfDES_decrypt, qfDES_cbc, _initVec)

#define qfDES_CFB_e(_key, _data, _size, _initVec) qfDES(_key, _data, _size, qfDES_encrypt, qfDES_cfb, _initVec)
#define qfDES_CFB_d(_key, _data, _size, _initVec) qfDES(_key, _data, _size, qfDES_decrypt, qfDES_cfb, _initVec)

#define qfDES_OFB_e(_key, _data, _size, _initVec) qfDES(_key, _data, _size, qfDES_encrypt, qfDES_ofb, _initVec)
#define qfDES_OFB_d(_key, _data, _size, _initVec) qfDES(_key, _data, _size, qfDES_decrypt, qfDES_ofb, _initVec)

/* Padded [m|re]alloc() */
unsigned char    qfDES_setPad (unsigned char pad);

#define qfDES_padSpace() qfDES_setPad((unsigned char) ' ')
#define qfDES_padZero() qfDES_setPad((unsigned char) '\0')

/* The size of text in a qfDES_malloc()ed block */
#define qfDES_plainTextSize(_ptr, _size) (unsigned int) ((_size) - (unsigned int) (_ptr)[(_size) - 1])

/* Keys */
void qfDES_setParity (unsigned char *ptr, unsigned int size, const QFDES_parity parity);
unsigned int qfDES_checkParity (unsigned char *ptr, unsigned int size, const QFDES_parity parity);

unsigned char *qfDES_generate (const QFDES_generate what); /* returns a pointer to static memory */

#define qfDES_generateKey() qfDES_generate(qfDES_key)
#define qfDES_generateIV() qfDES_generate(qfDES_iv)

int qfDES_checkWeakKeys (unsigned char *key);

#if defined(__cplusplus)
}
#endif

#endif /* !_qfDES_h_ */