Commit Graph

98 Commits

Author SHA1 Message Date
Frank Denis
d5fd75dcc7 Make crypto_stream_chacha20 modular like the rest
In preparation for optimized implementations
2015-11-25 01:17:37 +01:00
Frank Denis
cb9d52760c Update the Visual Studio 2015 solution 2015-11-23 15:36:28 +01:00
Frank Denis
65a91fd559 Remove api.h from the Visual Studio solutions 2015-11-22 12:44:45 +01:00
Frank Denis
9bfa30ae6a api.h -> stream_chacha20_ref.h 2015-11-22 00:02:00 +01:00
Frank Denis
0f030428ff Update the Visual Studio 2013 solution 2015-11-20 15:46:31 +01:00
Frank Denis
5a90e15eac Update the Visual Studio 2012 solution 2015-11-19 15:36:51 +01:00
Frank Denis
05ad4b62b9 Update the Visual Studio 2010 solution 2015-11-17 18:31:57 +01:00
Frank Denis
dd238f518d Bump major 2015-11-14 15:33:15 +01:00
Frank Denis
1bfdfd4e5d Update the Visual Studio 2015 solution 2015-11-01 19:26:09 +01:00
Frank Denis
2a1bc6607f Update the Visual Studio 2013 solution 2015-11-01 19:21:07 +01:00
Frank Denis
27ecb1f848 Update the Visual Studio 2012 solution 2015-11-01 19:14:55 +01:00
Frank Denis
36187f094d Update the Visual Studio 2010 solution 2015-11-01 19:06:42 +01:00
Frank Denis
2a77b18ad8 Version bump (not released yet) 2015-11-01 15:45:36 +01:00
Frank Denis
19308c5d5b Bump the library major version, since some functions have been removed
Even though these functions were exported, the number of applications
using them directly is very likely to be zero.

Still, bump the major library version to be safe and compliant.
2015-11-01 12:23:21 +01:00
Frank Denis
26fdfec99b Add sodium_runtime_has_ssse3() and sodium_runtime_has_sse41() 2015-10-31 23:42:44 +01:00
Frank Denis
f11da70ce2 Package version bump. No ABI version changes required. 2015-10-24 19:12:49 +02:00
Frank Denis
c5d675ebba MSVC solutions: exclude test files from build 2015-10-18 14:50:58 +02:00
Frank Denis
606ead7e16 Update MSVC2015 solution 2015-10-14 07:47:45 -07:00
Frank Denis
ec7b8e5605 Version bump [but still not released] 2015-10-14 14:43:22 +02:00
Frank Denis
fa71e064ef Update the MSVC2013 solution 2015-10-14 11:29:38 +02:00
Frank Denis
6e243160e8 Don't build for WP8 2015-10-13 15:12:48 +02:00
Frank Denis
a4a9f24f28 Update MSVS2012 solution 2015-10-13 05:57:15 -07:00
Frank Denis
ea5c989096 Update MSVC2010 solution 2015-10-13 05:07:09 -07:00
evoskuil
b77b074569 Fix Visual Studio common props for MT dynamic release. 2015-07-26 15:53:39 -07:00
Frank Denis
305d5e02e2 + ARM.props 2015-05-29 17:40:31 +02:00
Frank Denis
acac4cbf9d VC2012 ToolsVersion is 12.0 2015-05-04 12:44:07 +02:00
Frank Denis
f752a3edce Use correct ToolsVersion in the vc2015 proejct 2015-05-03 11:22:20 +02:00
Frank Denis
e084aec840 Add solution for vs2015 2015-05-02 10:42:43 +02:00
Frank Denis
b5fff1fcf5 Version bump 2015-04-26 17:09:00 +02:00
Frank Denis
a789e00d54 Remove resource.h/resource.rc 2015-04-25 18:32:06 +02:00
Frank Denis
797b423e88 Add missing Visual Studio filters for recent tests 2015-04-24 18:00:42 +02:00
Frank Denis
0b9d1cbc88 Add missing tests to the Visual Studio solutions 2015-04-21 20:41:30 +02:00
Frank Denis
575ce93058 + crypto_box_seal() 2015-04-17 01:01:32 +02:00
Frank Denis
4724440492 quirks\windows\windows-quirks.h -> quirks\quirks.h 2015-01-23 10:35:20 +01:00
Frank Denis
cb73ed5fe8 msvc version bump 2015-01-14 20:08:18 +01:00
Frank Denis
aaf5fbf2e5 + precomputed interface for crypto_box() 2015-01-06 17:52:42 +01:00
Jens Mueller
c9ef5ac2b5 fix building visual studio projects within a path containing white spaces 2014-11-21 16:57:07 +01:00
evoskuil
34c71ac38a Add/remove tests from VS test projects. 2014-11-02 22:38:13 -08:00
evoskuil
ebeafff62f Bump VS dll resource version to 1.0.1.0 2014-11-02 22:37:34 -08:00
evoskuil
72af365edc Revert changes to common props. 2014-11-02 22:36:21 -08:00
Andre Caron
a7a04d7af5 Changes DLL_EXPORT to SODIUM_DLL_EXPORT.
This macro conflicts with other projects.  This results in the inability to
build one DLL that depends on libsodium if the other DLL also uses the
DLL_EXPORT macro to control visibility of library symbols.  Since the choice of
name for this macro is arbitrary, use of a library prefix is preferred.
2014-10-13 15:18:09 -04:00
Frank Denis
84972cbf9c Version bump 2014-10-08 22:01:12 -07:00
Frank Denis
b91baa687e SODIUM_VERSION_STRING should be the package version even on Visual Studio 2014-09-30 11:35:31 -07:00
Frank Denis
2c61530133 1.0.0 2014-09-24 00:18:44 -07:00
Frank Denis
05f46af70e Version bump 2014-09-18 22:47:11 -07:00
Frank Denis
b062a555da scalarmult: check that the top bit is ignored 2014-09-18 21:27:49 -07:00
Frank Denis
61449686ee Version bump 2014-08-15 16:52:01 -07:00
Frank Denis
473e1718cc Add sodium_{malloc,allocarray,free}() and sodium_mprotect_*()
ptr = sodium_malloc(size) returns a pointer from which exactly "size" bytes
can be accessed.

ptr = sodium_allocarray(count, size) allocates enough storage space for
"count" pointers or scalars of unit size "size".

In both cases, the region is immediately followed by a guard page.
As a result, any attempt to access a memory location after ptr[size - 1] will
immediately trigger a segmentation fault.

The allocated region is mlock()ed and filled with 0xd0 bytes.

A read-only page with the size, a guard page, as well as a canary are
placed before the returned pointer.

The canary is checked by sodium_free(); as a result, altering data right
before ptr is likely to cause sodium_free() to kill the process.

sodium_free() munlock()s the region and fills it with zeros before
actually calling free().

sodium_mprotect_noaccess(), sodium_mprotect_readonly() and
sodium_mprotect_readwrite() can be used to change the protection on the set
of allocated pages.

Reverting the protection to read+write is not required before calling
sodium_free().
2014-08-14 21:41:05 -07:00
Frank Denis
6c78c9815c Remove compat.c 2014-08-13 17:40:06 -07:00
Frank Denis
eae4add8de Implement ed25519 -> curve25519 keys conversion 2014-08-05 13:32:25 -07:00