Move to providing cipher.AEAD impl.

This also fmts the code.