Here is a description of the algorithm:
http://en.wikipedia.org/wiki/Advance...ption_Standard
I hope you are just doing this for an academic project or just for fun.
Rule #1 of applying cryptography:
NEVER EVER implement your own encryption algorithm!! This is true even if you are following a well defined standard like AES. You must use an implementation that has been fully tested and peer reviewed. Your code
will have bugs in it, some that you could never conceive of. Someone
will find a way to crack it and exploit your errors.