Lines Matching refs:toybuf
277 i = read(fd, toybuf, sizeof(toybuf)); in do_lib_hash()
279 hash->update(&ctx, toybuf, i); in do_lib_hash()
281 hash->final(toybuf+128, &ctx); in do_lib_hash()
284 sprintf(toybuf+2*i, "%02x", toybuf[i+128]); in do_lib_hash()
306 i = read(fd, toybuf, sizeof(toybuf)); in do_builtin_hash()
308 hash_update(toybuf, i, transform); in do_builtin_hash()
330 sprintf(toybuf+2*i, "%02x", 255&(TT.state[i>>2] >> ((3-(i & 3)) * 8))); in do_builtin_hash()
331 else for (i=0; i<4; i++) sprintf(toybuf+8*i, "%08x", bswap_32(TT.state[i])); in do_builtin_hash()
335 i = strlen(toybuf)+1; in do_builtin_hash()
336 memset(toybuf+i, 0, sizeof(toybuf)-i); in do_builtin_hash()
346 printf((toys.optflags & FLAG_b) ? "%s\n" : "%s %s\n", toybuf, name); in do_hash()
368 *toybuf = 0; in do_c_line()
370 if (strcasecmp(line, toybuf)) toys.exitval = fail = 1; in do_c_line()