Mercurial > pidgin
view libpurple/protocols/mxit/aes.h @ 30305:d3e13deb64a5
propagate from branch 'im.pidgin.pidgin' (head d198e35f28e8800ec2979cfb22965fbe0a31e10d)
to branch 'im.pidgin.pidgin.mxit' (head f076179c710fd4a5ce523d997c91996222fda668)
author | andrew.victor@mxit.com |
---|---|
date | Tue, 27 Jul 2010 05:49:56 +0000 |
parents | 69aa4660401a |
children |
line wrap: on
line source
// advanced encryption standard // author: karl malbrain, malbrain@yahoo.com /* This work, including the source code, documentation and related data, is placed into the public domain. The orginal author is Karl Malbrain. THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR REDISTRIBUTION OF THIS SOFTWARE. */ #ifndef AES_MALBRAIN #define AES_MALBRAIN // AES only supports Nb=4 #define Nb 4 // number of columns in the state & expanded key #define Nk 4 // number of columns in a key #define Nr 10 // number of rounds in encryption typedef unsigned char uchar; void ExpandKey (uchar *key, uchar *expkey); void Encrypt (uchar *in, uchar *expkey, uchar *out); void Decrypt (uchar *in, uchar *expkey, uchar *out); #endif /* AES_MALBRAIN */