Key length and stopping time