descrambler: check for key validity