AES source implementation