Lines Matching +full:sha +full:- +full:256

32  * SHA-256 and SHA-512/256 hashes, as specified in FIPS 180-4, available at:
35 * This is a very compact implementation of SHA-256 and SHA-512/256.
40 * The literal definitions according to FIPS180-4 would be:
49 #define ROTR(x, n) (((x) >> (n)) | ((x) << ((sizeof (x) * NBBY)-(n))))
51 /* SHA-224/256 operations */
57 /* SHA-384/512 operations */
63 /* SHA-256 round constants */
83 /* SHA-512 round constants */
138 W[t] = SIGMA1_256(W[t - 2]) + W[t - 7] + in SHA256Transform()
139 SIGMA0_256(W[t - 15]) + W[t - 16]; in SHA256Transform()
172 W[t] = SIGMA1_512(W[t - 2]) + W[t - 7] + in SHA512Transform()
173 SIGMA0_512(W[t - 15]) + W[t - 16]; in SHA512Transform()
193 * Implements the SHA-224 and SHA-256 hash algos - to select between them
195 * in case of SHA-224.
205 for (i = 0; i < size - padsize; i += 64) in SHA256()
216 pad[padsize++] = (size << 3) >> (56 - 8 * i); in SHA256()
229 * encode 64bit data in big-endian format.
248 * Implements the SHA-384, SHA-512 and SHA-512/t hash algos - to select
250 * of this function is truncated to the first 256 bits that fit into 'zcp'.
256 uint8_t pad[256]; in SHA512()
261 for (i = 0; i < size - padsize; i += 128) in SHA512()
284 /* truncate the output to the first 256 bits which fit into 'zcp' */ in SHA512()
292 /* SHA-256 as per FIPS 180-4. */ in zio_checksum_SHA256()
304 /* SHA-512/256 as per FIPS 180-4. */ in zio_checksum_SHA512_native()
321 zcp->zc_word[0] = BSWAP_64(tmp.zc_word[0]); in zio_checksum_SHA512_byteswap()
322 zcp->zc_word[1] = BSWAP_64(tmp.zc_word[1]); in zio_checksum_SHA512_byteswap()
323 zcp->zc_word[2] = BSWAP_64(tmp.zc_word[2]); in zio_checksum_SHA512_byteswap()
324 zcp->zc_word[3] = BSWAP_64(tmp.zc_word[3]); in zio_checksum_SHA512_byteswap()