Lines Matching refs:g
46 } g; variable
160 g.cx.state[0] = 0x67452301; in hash_init()
161 g.cx.state[1] = 0xEFCDAB89; in hash_init()
162 g.cx.state[2] = 0x98BADCFE; in hash_init()
163 g.cx.state[3] = 0x10325476; in hash_init()
164 g.cx.state[4] = 0xC3D2E1F0; in hash_init()
165 g.cx.count[0] = g.cx.count[1] = 0; in hash_init()
172 j = g.cx.count[0]; in hash_step()
173 if( (g.cx.count[0] += len << 3) < j ){ in hash_step()
174 g.cx.count[1] += (len>>29)+1; in hash_step()
178 (void)memcpy(&g.cx.buffer[j], data, (i = 64-j)); in hash_step()
179 SHA1Transform(g.cx.state, g.cx.buffer); in hash_step()
181 SHA1Transform(g.cx.state, &data[i]); in hash_step()
187 (void)memcpy(&g.cx.buffer[j], &data[i], len - i); in hash_step()
200 finalcount[i] = (unsigned char)((g.cx.count[(i >= 4 ? 0 : 1)] in hash_finish()
204 while ((g.cx.count[0] & 504) != 448){ in hash_finish()
209 digest[i] = (unsigned char)((g.cx.state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); in hash_finish()
227 fprintf(stderr, "%s: ", g.zArgv0); in cmdlineError()
231 fprintf(stderr, "\n\"%s --help\" for more help\n", g.zArgv0); in cmdlineError()
241 fprintf(stderr, "%s: ", g.zArgv0); in runtimeError()
260 rc = sqlite3_prepare_v2(g.db, zSql, -1, &pStmt, 0); in db_vprepare()
262 runtimeError("SQL statement error: %s\n\"%s\"", sqlite3_errmsg(g.db), in db_vprepare()
299 if( g.fDebug & DEBUG_FULLTRACE ) fprintf(stderr, "NULL\n"); in hash_one_query()
314 if( g.fDebug & DEBUG_FULLTRACE ){ in hash_one_query()
331 if( g.fDebug & DEBUG_FULLTRACE ){ in hash_one_query()
341 if( g.fDebug & DEBUG_FULLTRACE ){ in hash_one_query()
351 if( g.fDebug & DEBUG_FULLTRACE ){ in hash_one_query()
367 printf("Usage: %s [options] FILE ...\n", g.zArgv0); in showHelp()
390 g.zArgv0 = argv[0]; in main()
399 g.fDebug = strtol(argv[++i], 0, 0); in main()
438 rc = sqlite3_open_v2(zDb, &g.db, openFlags, 0); in main()
443 rc = sqlite3_exec(g.db, "SELECT * FROM sqlite_schema", 0, 0, &zErrMsg); in main()
445 sqlite3_close(g.db); in main()
446 g.db = 0; in main()
488 sqlite3_close(g.db); in main()