Lines Matching refs:sha3_ctx
448 struct fio_sha3_ctx *sha3_ctx, uint8_t *sha, in verify_io_u_sha3() argument
455 fio_sha3_update(sha3_ctx, p, hdr->len - hdr_size(vc->td, hdr)); in verify_io_u_sha3()
456 fio_sha3_final(sha3_ctx); in verify_io_u_sha3()
458 if (!memcmp(sha, sha3_ctx->sha, sha_size)) in verify_io_u_sha3()
463 vc->bad_crc = sha3_ctx->sha; in verify_io_u_sha3()
473 struct fio_sha3_ctx sha3_ctx = { in verify_io_u_sha3_224() local
477 fio_sha3_224_init(&sha3_ctx); in verify_io_u_sha3_224()
479 return verify_io_u_sha3(hdr, vc, &sha3_ctx, vh->sha, in verify_io_u_sha3_224()
487 struct fio_sha3_ctx sha3_ctx = { in verify_io_u_sha3_256() local
491 fio_sha3_256_init(&sha3_ctx); in verify_io_u_sha3_256()
493 return verify_io_u_sha3(hdr, vc, &sha3_ctx, vh->sha, in verify_io_u_sha3_256()
501 struct fio_sha3_ctx sha3_ctx = { in verify_io_u_sha3_384() local
505 fio_sha3_384_init(&sha3_ctx); in verify_io_u_sha3_384()
507 return verify_io_u_sha3(hdr, vc, &sha3_ctx, vh->sha, in verify_io_u_sha3_384()
515 struct fio_sha3_ctx sha3_ctx = { in verify_io_u_sha3_512() local
519 fio_sha3_512_init(&sha3_ctx); in verify_io_u_sha3_512()
521 return verify_io_u_sha3(hdr, vc, &sha3_ctx, vh->sha, in verify_io_u_sha3_512()
1025 static void fill_sha3(struct fio_sha3_ctx *sha3_ctx, void *p, unsigned int len) in fill_sha3() argument
1027 fio_sha3_update(sha3_ctx, p, len); in fill_sha3()
1028 fio_sha3_final(sha3_ctx); in fill_sha3()
1034 struct fio_sha3_ctx sha3_ctx = { in fill_sha3_224() local
1038 fio_sha3_224_init(&sha3_ctx); in fill_sha3_224()
1039 fill_sha3(&sha3_ctx, p, len); in fill_sha3_224()
1045 struct fio_sha3_ctx sha3_ctx = { in fill_sha3_256() local
1049 fio_sha3_256_init(&sha3_ctx); in fill_sha3_256()
1050 fill_sha3(&sha3_ctx, p, len); in fill_sha3_256()
1056 struct fio_sha3_ctx sha3_ctx = { in fill_sha3_384() local
1060 fio_sha3_384_init(&sha3_ctx); in fill_sha3_384()
1061 fill_sha3(&sha3_ctx, p, len); in fill_sha3_384()
1067 struct fio_sha3_ctx sha3_ctx = { in fill_sha3_512() local
1071 fio_sha3_512_init(&sha3_ctx); in fill_sha3_512()
1072 fill_sha3(&sha3_ctx, p, len); in fill_sha3_512()