Commit Graph

21 Commits

Author SHA1 Message Date
Frank Denis
dadf1b0f1b VS2013 update 2016-03-07 15:36:25 +01:00
Frank Denis
14bf02af88 Rename the pwhash test as as pwhash_scrypt 2015-12-29 16:14:19 +01:00
Frank Denis
c5d675ebba MSVC solutions: exclude test files from build 2015-10-18 14:50:58 +02:00
Frank Denis
fa71e064ef Update the MSVC2013 solution 2015-10-14 11:29:38 +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
4724440492 quirks\windows\windows-quirks.h -> quirks\quirks.h 2015-01-23 10:35:20 +01:00
evoskuil
34c71ac38a Add/remove tests from VS test projects. 2014-11-02 22:38:13 -08:00
Frank Denis
b062a555da scalarmult: check that the top bit is ignored 2014-09-18 21:27:49 -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
eae4add8de Implement ed25519 -> curve25519 keys conversion 2014-08-05 13:32:25 -07:00
evoskuil
a7f810fad1 Remove test files from new VS test projects. 2014-07-03 14:30:57 -06:00
evoskuil
e5648e21a2 Remove use of $(DefaultLinkage) for values reflected in the VS props UI. 2014-05-21 00:01:26 -07:00
evoskuil
4c2d0242fe Simplify VS project configurations and harden MSBUILD script. 2014-05-12 20:18:22 -07:00
evoskuil
0e94fbb766 Modify VS props config for easy variation of output locations and messages. 2014-05-10 19:30:10 -07:00
evoskuil
63a7e26499 Update Visual Studio projects and packaging. 2014-05-10 03:47:35 -07:00
evoskuil
4b082ced94 Share VS props files and increment package version. 2014-04-25 02:49:19 -07:00
evoskuil
34509b99d9 Update filter file tool versions. 2014-04-15 01:43:42 -07:00
evoskuil
d36bcc85b5 Remove versioning from .props files. 2014-04-14 17:54:49 -07:00
evoskuil
37baa8a6ab Update VS build, add VS2012 and VS2013 projects. 2014-04-09 03:26:45 -07:00
evoskuil
7f046509ef Add VS2012/VS2010 solutions, add test proj to VS2013, remove export files. 2014-04-07 19:06:10 -07:00