1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-26 05:25:15 -07:00
Commit Graph

79 Commits

Author SHA1 Message Date
Frank Denis
334738cf29 Add resource.rc to the Visual Studio filters files 2017-07-24 14:06:21 +02:00
Frank Denis
957f0ab299 Add box_seal_curve25519xchacha20poly1305 to the MSVC projects 2017-07-07 19:31:53 +02:00
Frank Denis
2805a23574 Regen MSVC projects 2017-06-27 16:23:53 +02:00
Frank Denis
935557cdf7 Add AVX2-optimized Argon2 blamka function 2017-06-27 14:26:40 +02:00
Frank Denis
3a9c4c38f7 Re-add $(VCTargetsPath)\Microsoft.Cpp.targets
Fixes #553
2017-05-27 16:19:47 +02:00
Frank Denis
0eed55ce6a Remove redundant definitions from the project files 2017-05-27 12:01:34 +02:00
Frank Denis
87473fdd3f MSVC advapi32.lib dependency should not be in vcxproj
Fixes #552
2017-05-27 11:47:32 +02:00
Frank Denis
9787febb00 Regen 2017-05-25 12:51:02 +02:00
LammyL
98e58ae4c1 Added version resource files for msvc compiled dlls. (#551) 2017-05-25 12:39:18 +02:00
Eric Voskuil
c11fd0ddd0 Fix up buildbase.bat, VS projects whitespace and remove ARM.props (#519)
* Fix invalid stream of Visual Studio DynDebug build logs.

* Remove ARM props file (undergeneralized).

* Clean up white space in Visual Studio *.props files.
2017-03-24 08:39:50 +01:00
Frank Denis
8283283498 Regen Visual Studio solutions 2017-03-12 18:17:49 +01:00
Frank Denis
849a35bd82 + crypto_kx_*() API
This doesn't include a full key exchange API yet.
2017-03-12 13:15:39 +01:00
Frank Denis
b3e27d14aa Move 64-bit emulation to a dedicated private header file 2017-03-05 23:44:51 +01:00
Frank Denis
707f4c8e08 Add ed25519ph 2017-03-05 14:45:13 +01:00
Frank Denis
f23d7eff4d Automatically generate MSVC projects 2017-02-28 17:33:57 +01:00
Frank Denis
482ab1ed41 Reintroduce 27a2756479 2016-07-24 19:54:07 +02:00
Frank Denis
6996360304 Revert "VS2013 debug symbols"
This reverts commit 0788e50bfd.
2016-07-24 15:35:51 +02:00
Jan-E
0788e50bfd VS2013 debug symbols 2016-07-24 01:03:41 +02:00
Frank Denis
3fe5590b94 Do not forget crypto_pwhash.c on Visual Studio 2016-04-13 08:12:54 +02:00
Frank Denis
8957364f47 Remove headers that are not required in MSVC solutions 2016-04-04 18:02:22 +02:00
Frank Denis
5cad35bfae Remove some unneeded dependencies from MSVC project filters 2016-04-04 16:32:47 +02:00
Frank Denis
4b6667a9d3 Update Makefiles and MSVC solutions 2016-03-17 17:07:43 +01:00
Frank Denis
4093e253f5 Remove the test dir from the VS solutions, except the top one 2016-03-07 16:13:59 +01:00
Frank Denis
81f3f64f42 Remove disabled files 2016-03-07 15:51:45 +01:00
Frank Denis
dadf1b0f1b VS2013 update 2016-03-07 15:36:25 +01:00
Frank Denis
adfe6c9d55 scrypt/sysendian.h is gone 2016-02-27 13:14:01 +01:00
Frank Denis
22eebd83f1 common_aes128ctr.c is gone 2016-02-27 13:11:08 +01:00
gnieboer
b4af066286 Added all argon2 files to other msvc project files and project filter files 2016-02-07 17:11:59 +03:00
Frank Denis
14bf02af88 Rename the pwhash test as as pwhash_scrypt 2015-12-29 16:14:19 +01:00
Frank Denis
ee3a5d8cf3 Update the Visual Studio solutions 2015-12-24 04:10:18 +01:00
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
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
2a1bc6607f Update the Visual Studio 2013 solution 2015-11-01 19:21:07 +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
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
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
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
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
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
Frank Denis
7b0eeda1c6 Remove aes256estream.
AES-256 will be reintroduced, but not until we have a bitsliced implementation.
2014-08-05 00:57:10 -07:00