SM3SM4 algorithm niosII implementation