Commit Graph

860 Commits

Author SHA1 Message Date
Frank Denis
7775a34c97 Add crypto_pwhash_scryptxsalsa208sha256() + output/salt len macros/functions. 2014-05-06 23:50:46 -07:00
Frank Denis
d33d0f08e0 Preliminary build script for Emscripten 2014-05-06 14:43:46 -07:00
Frank Denis
394e654c40 Unbreak cpuid check in autoconf 2014-05-06 12:31:08 -07:00
Frank Denis
20088ca5e2 Remove HAVE_CPUID conditional 2014-05-06 12:26:53 -07:00
Frank Denis
a30f364ce1 Have sodium_munlock() zero the buffer before unlocking it. 2014-05-06 09:18:31 -07:00
Frank Denis
2094263048 Update Win32/Win64 build scripts 2014-05-05 15:50:15 -07:00
Frank Denis
b4e98c0253 Ensure that /dev/urandom is a char device. 2014-05-05 14:39:38 -07:00
Frank Denis
baa4deb1f4 Merge pull request #144 from hintjens/master
Problem: utils.h not installed
2014-05-02 23:39:53 -07:00
Pieter Hintjens
94e9981357 Problem: utils.h not installed
Missing backslash in Makefile.am meant utils.h wasn't installed.
2014-05-03 08:37:50 +02:00
Frank Denis
dc5dbae12f Sync autoconf cpuid detection code 2014-05-02 21:24:31 -07:00
Frank Denis
f8c49ac54f cpuid is not going to change more than ebx, even on x86_64 2014-05-02 21:16:32 -07:00
Frank Denis
f601e6e471 Preserve (e|r)bx register when calling cpuid 2014-05-02 20:39:51 -07:00
Frank Denis
b1c79463e0 Do not forget extern "C" wrappers. 2014-05-02 17:21:44 -07:00
Frank Denis
ced8034901 Test only for cpu features we actually use for now, add MMX. 2014-05-02 15:39:49 -07:00
Frank Denis
cb4f3e4f06 Use SSE2 or portable scrypt implementation according to what the CPU supports. 2014-05-02 15:20:34 -07:00
Frank Denis
42e4ebe3e3 autoconf uses HAVE_*, but runtime_have_* sounds really awkward 2014-05-02 14:48:12 -07:00
Frank Denis
cb8544715b Check for SSE2/SSE3/NEON support at runtime. 2014-05-02 14:40:39 -07:00
Frank Denis
3cefff9e52 Goodbye poly1305-53 and its genius fp wizardry. 2014-05-01 21:51:02 -07:00
Frank Denis
ada7ebdf5d Get ready to say goodbye to the infamous poly1305-53 implementation.
Give room for optimized implementations instead.
2014-05-01 21:42:45 -07:00
Frank Denis
840b0f243d glibc requires #pragma GCC target("sse2") to use SSE2 instructions 2014-05-01 13:55:09 -07:00
Frank Denis
5df1a09f9a Do not try to directly include <avxintrin.h> 2014-05-01 13:51:05 -07:00
Frank Denis
f2f126fdfd Remove empty lines 2014-05-01 10:54:00 -07:00
Frank Denis
40b9d0fdc7 Fix mlock()/munlock() return value on Windows 2014-04-27 09:19:50 -07:00
Frank Denis
3cbff15e59 Expose size_t crypto_shorthash_siphash24_keybytes(void); 2014-04-26 16:39:43 -07:00
Frank Denis
643f5f75c4 Merge pull request #138 from evoskuil/master
Share VS props files and increment package version.
2014-04-25 05:58:32 -07:00
evoskuil
9c97098378 Uupdate GSL reference in packaging script. 2014-04-25 04:52:55 -07:00
evoskuil
4b082ced94 Share VS props files and increment package version. 2014-04-25 02:49:19 -07:00
Frank Denis
2e0497afa6 <limits.h> is required for SIZE_MAX. Fixes Android build. 2014-04-24 23:05:16 -07:00
Frank Denis
884eac37ce iphone.sh -> ios.sh 2014-04-24 22:59:00 -07:00
Frank Denis
2dc67daaa7 Merge pull request #137 from evoskuil/master
Adding source files to VS project files.
2014-04-24 08:35:16 -07:00
evoskuil
135fb36b67 Add files to VS projects. 2014-04-23 19:24:51 -07:00
Frank Denis
488cb28953 Do not use functions that aren't fully supported by Emscripten yet. 2014-04-22 18:12:49 -07:00
Frank Denis
8c2e0189ab Do not compile sse/pwhash_scryptxsalsa208sha256.c unless emmintrin.h is available. 2014-04-20 09:06:07 -07:00
Frank Denis
01059444ee Wait, what, printf(3) on Windows doesn't even support %zu? o_O 2014-04-17 22:15:09 -07:00
Frank Denis
62d78ec154 Pointers for sodium_m[un]lock() do not have to be const 2014-04-17 22:10:18 -07:00
Frank Denis
b5589d1855 <errno.h> is required in scrypt_platform.h 2014-04-17 22:06:32 -07:00
Frank Denis
7b07e38c66 Add sodium_mlock() and sodium_munlock() 2014-04-16 18:18:44 -07:00
Frank Denis
53f3784a18 Also check for VirtualLock() 2014-04-16 18:04:45 -07:00
Frank Denis
7533cca9c7 Check for mlock() 2014-04-16 18:04:09 -07:00
evoskuil
207212b276 Update filters for newly-added/removed source files. 2014-04-16 17:05:54 -07:00
Frank Denis
85c2d1eb8f Merge remote-tracking branch 'evoskuil/master' into vs
* evoskuil/master: (57 commits)
  Don't use compile-time assertions with sizeof(dynamic length).
  Add two more files to VS build.
  Update project files for recent library changes.
  Copy version file to source directory for build, with info message.
  Version file that is automatically copied into build directory.
  size -> len, for consistency
  Add sodium_hex2bin()
  Slightly rename args in sodium_bin2hex() for consistency
  Indent
  Directly use OpenBSD's arc4random() instead of opening /dev/urandom.
  Indentation
  hardcoded size -> sizeof
  Update .gitignore for the new tests
  Add tests for auth_hmac_sha512
  Remove useless #define
  Since auth_hmac_sha512256 is just truncated hmac_sha512, expose hmac_sha512
  Make hash_sha512 / hmac_sha512256 consistent with hash_sha256 / hmac_sha256
  Update filter file tool versions.
  Update filters for source file changes.
  Update VS projects to accomodate source file list changes.
  ...
2014-04-15 20:51:53 -07:00
Frank Denis
fdc5843176 Don't use compile-time assertions with sizeof(dynamic length). 2014-04-15 20:32:01 -07:00
evoskuil
6ede7869ec Add two more files to VS build. 2014-04-15 20:31:32 -07:00
Frank Denis
f288d11910 Don't use compile-time assertions with sizeof(dynamic length). 2014-04-15 20:16:23 -07:00
evoskuil
de2a274e6a Update project files for recent library changes. 2014-04-15 19:51:54 -07:00
evoskuil
d54cabd59a Copy version file to source directory for build, with info message. 2014-04-15 19:51:29 -07:00
evoskuil
e9fef026f7 Version file that is automatically copied into build directory. 2014-04-15 19:50:09 -07:00
evoskuil
852f1f6894 Merge branch 'origin/master' 2014-04-15 19:18:50 -07:00
Frank Denis
87ebd75469 size -> len, for consistency 2014-04-15 18:12:21 -07:00
Frank Denis
c6f1a2670a Add sodium_hex2bin() 2014-04-15 18:12:20 -07:00