Resolved issue with GenerateDecryptionKey hanging

A few changes.
1. Change to AES_defs.h to allow it to compile
2. Put back original version of GenerateDecryptionKey.c
3. Changes to main.c to allow Interrupts to make AES processes complete.