update sha1 for Cpp

@timholy, is this right?