Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sha256.c
Show All 22 Lines | |||||
* Use is subject to license terms. | * Use is subject to license terms. | ||||
*/ | */ | ||||
/* | /* | ||||
* Copyright 2013 Saso Kiselkov. All rights reserved. | * Copyright 2013 Saso Kiselkov. All rights reserved. | ||||
*/ | */ | ||||
#include <sys/zfs_context.h> | #include <sys/zfs_context.h> | ||||
#include <sys/zio.h> | #include <sys/zio.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <crypto/sha2/sha2.h> | #include <crypto/sha2/sha256.h> | ||||
#else | #else | ||||
#include <sha256.h> | #include <sha256.h> | ||||
#endif | #endif | ||||
/*ARGSUSED*/ | /*ARGSUSED*/ | ||||
void | void | ||||
zio_checksum_SHA256(const void *buf, uint64_t size, | zio_checksum_SHA256(const void *buf, uint64_t size, | ||||
const void *ctx_template, zio_cksum_t *zcp) | const void *ctx_template, zio_cksum_t *zcp) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |