123456789101112131415161718192021222324 |
- #ifndef SHA256_SSE2_H_
- #define SHA256_SSE2_H_
- #include <stdint.h>
- /**
- * SHA256_Transform_sse2(state, block):
- * Compute the SHA256 block compression function, transforming ${state} using
- * the data in ${block}. This implementation uses x86 SSE2 instructions, and
- * should only be used if _SSE2 is defined and cpusupport_x86_sse2() returns
- * nonzero. The arrays W and S may be filled with sensitive data, and should
- * be cleared by the callee.
- */
- #ifdef POSIXFAIL_ABSTRACT_DECLARATOR
- void SHA256_Transform_sse2(uint32_t state[8],
- const uint8_t block[64], uint32_t W[64], uint32_t S[8]);
- #else
- void SHA256_Transform_sse2(uint32_t[static restrict 8],
- const uint8_t[static restrict 64], uint32_t W[static restrict 64],
- uint32_t S[static restrict 8]);
- #endif
- #endif /* !SHA256_SSE2_H_ */
|