/* return 0 if key parity is odd (correct), * return -1 if key parity error, * return -2 if illegal weak key. */