I've been studying encryption on a hobby basis, and wanted to know if I got this basic cypher construction right (this is another experiment, see the AES ECB experiment thread earlier).
Encryption:
- XOR plain text block, initialization vector and counter together.
- AES resulting block.
- Increment counter.
- Goto 1 until all plain text blocks are done.
Authentication tag:
- Sha256 cipher text.
- AES resulting hash using authentication key.