I get that coding cryptography is fun. I did it in university for the relevant classes where we had been given specific exercises, test vectors, in the second one even automatic testing with thousands of test cases, and speed mattered too. For education, that's pretty amazing, but if you do your own Crypto and put it in production you're just asking for trouble.
This really is just an AES GCM case. And don't understate the beauty of using a well formalized and thought out crypto primitive for actual applications. Cryptography is fucking cool.
Christdemokraten?