summaryrefslogtreecommitdiff
path: root/cstrobf.h
blob: c0628a81671b4fb2195a81bcfe341fa73082ee41 (plain)
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
#pragma once
/*
 * LOKI3
 *
 * [ cstrobf.h ]
 *
 *  2019 and beyond Elective Surgery        [dmfr]
 */

#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <time.h>


#define CSTROBF_MAX 1024
#define KEY_SIZE    8


typedef struct cstrobf {
	uint8_t		str[CSTROBF_MAX];
	size_t		size;
	uint8_t		key[KEY_SIZE];
	size_t		ksize;
} estring;


char *decrypt (estring);
void destroy(char *, size_t);

/* EOF */