Check for mandatory random data length if public key auth.