Update implementation to use new cipher.AEAD interface
which is faster and produces smaller tokens.