diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-28 19:22:16 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-28 19:22:16 +0000 |
commit | f769a165fd3bb4f68d8cdee160ebd8f003fcc0e1 (patch) | |
tree | a5381ee6f67fb5ec230e7fa797fad13fe146703c /protocols/Skype/src/aes/aes.h | |
parent | 732783eb0ab6e5528ace0f3ef3caafc3096bb237 (diff) |
aes changes revert
git-svn-id: http://svn.miranda-ng.org/main/trunk@4561 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, 17 insertions, 8 deletions
diff --git a/protocols/Skype/src/aes/aes.h b/protocols/Skype/src/aes/aes.h index 4b99a3e01c..af81401a0f 100644 --- a/protocols/Skype/src/aes/aes.h +++ b/protocols/Skype/src/aes/aes.h @@ -1,15 +1,24 @@ #ifndef _AES_H #define _AES_H +#ifndef uint8 +#define uint8 unsigned char +#endif + +#ifndef uint32 +#define uint32 unsigned long int +#endif + 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]); + 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] ); #endif /* aes.h */ |