Implemented authenticated encryption