Chinese SM3 digest algorithm with test cases