summaryrefslogtreecommitdiff
path: root/plugins/!Deprecated/Skype/src/aes/aes.h
blob: 8bc958b4100942002b8be819b4d583a134e4955d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _AES_H
#define _AES_H

typedef struct
{
	unsigned long int erk[64]; /* encryption round keys */
	unsigned long int drk[64]; /* decryption round keys */
	int nr; /* number of rounds */
} aes_context;

int aes_set_key(aes_context *ctx, unsigned char *key, int nbits);
void aes_encrypt(aes_context *ctx, unsigned char input[16], unsigned char output[16]);
void aes_decrypt(aes_context *ctx, unsigned char input[16], unsigned char output[16]);

#endif /* aes.h */