A Security Analysis Method for Security Protocol Implementations Based on Message Construction