mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 18:23:42 +00:00
16 lines
410 B
C
Executable File
16 lines
410 B
C
Executable File
#pragma once
|
|
|
|
#include <sys/socket.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
unsigned char encrypt_table[256];
|
|
unsigned char decrypt_table[256];
|
|
void get_table(const unsigned char* key);
|
|
void encrypt(char *buf, int len);
|
|
void decrypt(char *buf, int len);
|
|
int send_encrypt(int sock, char *buf, int len, int flags);
|
|
int recv_decrypt(int sock, char *buf, int len, int flags);
|
|
|