crypto_scrypt_smix_sse2.h 627 B

1234567891011121314151617181920
  1. #ifndef CRYPTO_SCRYPT_SMIX_SSE2_H_
  2. #define CRYPTO_SCRYPT_SMIX_SSE2_H_
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. /**
  6. * crypto_scrypt_smix_sse2(B, r, N, V, XY):
  7. * Compute B = SMix_r(B, N). The input B must be 128r bytes in length;
  8. * the temporary storage V must be 128rN bytes in length; the temporary
  9. * storage XY must be 256r + 64 bytes in length. The value N must be a
  10. * power of 2 greater than 1. The arrays B, V, and XY must be aligned to a
  11. * multiple of 64 bytes.
  12. *
  13. * Use SSE2 instructions.
  14. */
  15. void crypto_scrypt_smix_sse2(uint8_t *, size_t, uint64_t, void *, void *);
  16. #endif /* !CRYPTO_SCRYPT_SMIX_SSE2_H_ */