Commit Graph

1712 Commits

Author SHA1 Message Date
Frank Denis
e8e5d2fc18 Add crypto_aead_aes256gcm_aesni_*
Requires a CPU with aesni and pclmulqdq
This is a private branch for a reason. It is not going to be merged as-is.
2015-10-07 23:09:19 +02:00
Frank Denis
d8e870cb43 /dev/urandom can be a name special file in addition to a character special file 2015-10-05 11:51:29 +02:00
Frank Denis
4705c0a066 Yes, support for NativeClient was added. 2015-09-22 22:51:31 +02:00
Frank Denis
dca2131f45 C++ compat 2015-09-21 16:05:53 +02:00
Frank Denis
6be1ce3f34 scalarmult: add the exact test from the irtf-cfrg-curves draft
Use guarded memory by the way.
2015-09-21 15:45:32 +02:00
Frank Denis
fe27e6c136 randombytes: use arc4random(3) on OpenBSD and CloudABI 2015-09-13 15:34:01 +02:00
Frank Denis
6757e3320a Confusing indentation 2015-09-13 15:09:51 +02:00
Frank Denis
46f71fba9e Check for getpid(2) presence instead of checking for Visual Studio 2015-09-13 15:04:26 +02:00
Frank Denis
7fa840e486 C++ compat 2015-09-09 17:42:38 +02:00
Frank Denis
8ee4950eb3 Use sodium_malloc() for the secretbox_*() tests 2015-09-09 10:00:18 +02:00
Frank Denis
e424963ae8 Call a weak function in sodium_memcmp() to prevent LTO.
sodium_memcmp() can be used to compare user-provided secrets against
constant, hardcoded secrets. We don't want the compiler to generate code
that would be optimized for these hardcoded values.
2015-09-09 09:33:20 +02:00
Frank Denis
0f1f8a6ea6 Check that secretbox works as expected when m and c are overlapping 2015-09-09 09:00:08 +02:00
Frank Denis
f51fb6a90e Add a test for crypto_secretbox() with c == m 2015-09-09 08:51:19 +02:00
Frank Denis
c1f749e68a Keep shell variables names consistent with their related C macros. 2015-09-04 15:37:31 +02:00
Frank Denis
cccc29cc18 Merge pull request #293 from mvduin/master
improve test for unaligned access
2015-09-04 15:31:01 +02:00
Matthijs van Duin
cfa9e95b6c improve test for unaligned access
check target attribute on ARM
2015-09-04 02:29:34 +02:00
Frank Denis
8fa4ef1391 + Drew Crawford for NaOH 2015-08-31 02:47:21 +02:00
Frank Denis
2ec482a3d9 Sadly compile for platform version 16 (Android 4.1) 2015-08-11 07:58:50 +02:00
Frank Denis
486b05fccb Thanks @franks42 for the new Clojure bindings 2015-08-06 02:30:57 +02:00
Frank Denis
fb2a76f37b Add braces for consistency 2015-08-05 20:00:15 +02:00
Frank Denis
7bce6d82f0 Reindent Android build script 2015-08-05 19:46:36 +02:00
Frank Denis
a934fe072b Export crypto_onetimeauth to emscripten 2015-08-05 11:41:44 +02:00
Frank Denis
e0ad286258 Remove armv7s from the iOS build script 2015-08-04 13:51:12 +02:00
Frank Denis
90d9f5debd Remove bashisms in nacl-test-wrapper.sh 2015-08-02 14:39:17 +02:00
Frank Denis
a8bd6a397b Add a nativeclient build script 2015-08-02 14:17:59 +02:00
Frank Denis
7fca230be8 Nits after pnacl merge 2015-08-02 13:53:22 +02:00
Frank Denis
f610f781f2 Merge remote-tracking branch 'arbinger/pnacl' into nacl
* arbinger/pnacl:
  removed comment
  Added .final and .nexe output files to CLEANFILES
  revert original hack
  Initial patch for Chrome NaCl implementation
  Added patch to obtain random bytes for Chrome NaCl via IRT -- allows build with NaCl SDK toolchain
2015-08-02 12:54:05 +02:00
Frank Denis
39bc0980ef Merge pull request #287 from wongsyrone/master
Fix _FORTIFY_SOURCE redefined issue
2015-08-02 08:18:08 +02:00
Syrone Wong
4074470a31 Fix _FORTIFY_SOURCE redefined issue 2015-08-02 09:36:52 +08:00
Frank Denis
024b74c849 Merge pull request #285 from evoskuil/master
Fix VS common props for MT release dll, remove dead code.
2015-07-27 01:19:43 +02:00
evoskuil
aadab3eba3 Remove dead code. 2015-07-26 16:03:24 -07:00
evoskuil
b77b074569 Fix Visual Studio common props for MT dynamic release. 2015-07-26 15:53:39 -07:00
Frank Denis
c8e8983430 Test crypto_stream_*() with an output buffer previously filled with junk
Obviously, the previous content shouldn't change the output.
2015-07-21 13:37:06 +02:00
Frank Denis
f16abdb5e3 <unistd.h> -> <stddef.h> 2015-07-20 23:58:09 +02:00
Frank Denis
67205bc9d4 Emscripten target: don't run the Closure compiler any more. 2015-07-20 16:17:39 +02:00
Frank Denis
e972f0269b Emscripten: enable NO_DYNAMIC_EXECUTION=1
When enabled, we do not emit eval() and new Function(), which disables some functionality
(causing runtime errors if at tempted to be used), but allows the emitted code to be
acceptable in places that disallow dynamic code execution (chrome packaged app, non-
privileged firefox app, etc.)
2015-07-20 15:56:41 +02:00
Frank Denis
34176344fe iOS: install the library into $PREFIX/lib 2015-07-18 17:44:45 +02:00
Frank Denis
bb8c58cdd7 Include <unistd.h> for size_t 2015-07-18 12:07:38 +02:00
Frank Denis
6d10bfffca Add @top_srcdir@/src/libsodium/include/sodium to libsodium-uninstalled.pc.in 2015-07-17 12:56:55 +02:00
Frank Denis
41bb370603 libsodium-uninstalled.pc.in: include -I@top_srcdir@/src/libsodium/include 2015-07-16 17:47:08 +02:00
Frank Denis
385ac7e06a Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Add missing Android build scripts to the distfiles
  Add simple compile scripts for android-mips64 and android-x86_64 (w/o optimizations)
  Update local autoconf scripts
2015-07-15 16:52:05 +02:00
Frank Denis
9e4009e7b7 Thank RudolfVonKurgstein for the HaXe bindings 2015-07-15 16:51:47 +02:00
Frank Denis
3a74da3345 Add missing Android build scripts to the distfiles 2015-07-12 02:23:59 +02:00
Emiliano Bonassi
8f4ac9c585 Add simple compile scripts for android-mips64 and android-x86_64 (w/o optimizations) 2015-07-12 02:22:04 +02:00
Frank Denis
944d4db270 Merge branch 'master' of https://github.com/jedisct1/libsodium
* 'master' of https://github.com/jedisct1/libsodium:
  Revert "Export sodium_increment() to Emscripten"
2015-07-12 02:19:55 +02:00
Frank Denis
2c62dc9020 Update local autoconf scripts 2015-07-12 02:19:40 +02:00
Frank Denis
965eaeac46 Revert "Export sodium_increment() to Emscripten"
This reverts commit a8e4115851.
2015-06-28 15:44:06 +02:00
James Robson
8444667b8b removed comment 2015-06-23 13:34:29 -05:00
James Robson
e119c3e502 Added .final and .nexe output files to CLEANFILES 2015-06-22 14:16:07 -05:00
James Robson
1b633bb8ca Merge branch 'master' into pnacl 2015-06-22 13:19:33 -05:00