diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-28 14:19:50 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-28 14:19:50 +0000 |
commit | 732783eb0ab6e5528ace0f3ef3caafc3096bb237 (patch) | |
tree | 365a8428c2aeb24c8de4c01a64e4a3d361ec7a03 /protocols/Skype/src/aes/aes.h | |
parent | 00a4bd1767a64e067e9c83a64be2291f5fc34561 (diff) |
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4560 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/aes/aes.h')
-rw-r--r-- | protocols/Skype/src/aes/aes.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/protocols/Skype/src/aes/aes.h b/protocols/Skype/src/aes/aes.h index af81401a0f..4b99a3e01c 100644 --- a/protocols/Skype/src/aes/aes.h +++ b/protocols/Skype/src/aes/aes.h @@ -1,24 +1,15 @@ #ifndef _AES_H #define _AES_H -#ifndef uint8 -#define uint8 unsigned char -#endif - -#ifndef uint32 -#define uint32 unsigned long int -#endif - typedef struct { - uint32 erk[64]; /* encryption round keys */ - uint32 drk[64]; /* decryption round keys */ - int nr; /* number of rounds */ -} -aes_context; - -int aes_set_key( aes_context *ctx, uint8 *key, int nbits ); -void aes_encrypt( aes_context *ctx, uint8 input[16], uint8 output[16] ); -void aes_decrypt( aes_context *ctx, uint8 input[16], uint8 output[16] ); + 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 */ |