basic templates

* cbc template
* aes template
* prepare for encrypt/decrypt templates