added decryption stuff to counter2