File: ipenc.h

package info (click to toggle)
libtrace3 3.0.22-0.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,452 kB
  • sloc: ansic: 24,574; sh: 11,372; cpp: 1,811; makefile: 460; yacc: 96; lex: 50
file content (13 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef IPENC_H
#define IPENC_H
#include <inttypes.h>
/** The encryption algorithm used
 */
enum enc_type_t {
	ENC_NONE,			/**< No encryption */
	ENC_PREFIX_SUBSTITUTION,	/**< Substitute a prefix */
	ENC_CRYPTOPAN			/**< Prefix preserving encryption */
	};
void enc_init(enum enc_type_t type, char *key);
uint32_t enc_ip(uint32_t orig_addr);
#endif