Implemented part of the AES crypto system.