ctr mode
Client for functional ctr