diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-27 11:39:36 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-27 11:39:36 +0000 |
commit | f3d22ea361554a090112ccaeb4290d14964a283d (patch) | |
tree | c1c789232a52cfb6a0a8c00d796fdc54d68ebb59 /protocols/Skype/keypacker/aes/aes.h | |
parent | c7fa62a343fe1e5937602c216ec5d7e597462768 (diff) |
added instruction how to build skypekit libs
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4551 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/keypacker/aes/aes.h')
-rw-r--r-- | protocols/Skype/keypacker/aes/aes.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/protocols/Skype/keypacker/aes/aes.h b/protocols/Skype/keypacker/aes/aes.h new file mode 100644 index 0000000000..af81401a0f --- /dev/null +++ b/protocols/Skype/keypacker/aes/aes.h @@ -0,0 +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 +{ + 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 */ |