Lines Matching refs:toybuf
276 i = read(fd, toybuf, sizeof(toybuf)); in do_lib_hash()
278 hash->update(&ctx, toybuf, i); in do_lib_hash()
280 hash->final(toybuf+128, &ctx); in do_lib_hash()
283 sprintf(toybuf+2*i, "%02x", toybuf[i+128]); in do_lib_hash()
305 i = read(fd, toybuf, sizeof(toybuf)); in do_builtin_hash()
307 hash_update(toybuf, i, transform); in do_builtin_hash()
329 sprintf(toybuf+2*i, "%02x", 255&(TT.state[i>>2] >> ((3-(i & 3)) * 8))); in do_builtin_hash()
330 else for (i=0; i<4; i++) sprintf(toybuf+8*i, "%08x", bswap_32(TT.state[i])); in do_builtin_hash()
337 i = strlen(toybuf)+1; in do_builtin_hash()
338 memset(toybuf+i, 0, sizeof(toybuf)-i); in do_builtin_hash()
348 printf(FLAG(b) ? "%s\n" : "%s %s\n", toybuf, name); in do_hash()
370 *toybuf = 0; in do_c_line()
372 if (strcasecmp(line, toybuf)) toys.exitval = fail = 1; in do_c_line()