James Robson
34a4931d9a
Initial patch for Chrome NaCl implementation
2015-06-22 13:02:21 -05:00
Frank Denis
a678c09ea3
Export chacha20poly1305_ietf functions to JavaScript
2015-05-15 10:27:16 +02:00
Frank Denis
94255bee36
bin2hex(): abort(3) if the length doesn't include the final \0
2015-05-15 09:23:59 +02:00
Frank Denis
bf920dc717
Add IETF-compatible version of chacha20poly1305
2015-05-09 16:12:03 +02:00
Frank Denis
63dd05419e
crypto_box_keypair() cannot fail - Add lcov exclusion.
2015-05-09 15:56:52 +02:00
Frank Denis
ee97d5e3f8
Add tests for custom randombytes_uniform.
...
Check for crypto_auth_hmacsha512256_statebytes() presence.
2015-05-09 15:54:18 +02:00
Frank Denis
fe02b1db1b
Also zero the public key and nonce after encryption in crypto_box_seal()
2015-05-09 12:40:25 +02:00
Frank Denis
a593e37983
Rename arguments for consistency
2015-05-09 12:37:27 +02:00
Frank Denis
e7ec16a35d
Update version for Coverity
2015-05-09 10:08:51 +02:00
Frank Denis
3d03e34b06
Update ChangeLog
2015-05-09 10:06:33 +02:00
Frank Denis
111e79e021
Merge pull request #258 from shancat/master
...
Use https when linking where possible.
2015-05-08 10:34:44 +02:00
Shannen Saez
7237f68d58
Use https when linking where possible.
...
Only makes sense to use TLS when linking from a crypto-related library.
Had to change the libsodium documentation link a bit because the
original URL returns the gitbook.org certificate. cr.yp.to doesn't
actually support encrypting HTTP with TLS so we leave it as-is.
2015-05-08 14:53:59 +10: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
09a3b3efbc
Merge branch 'vs2015'
...
* vs2015:
Add solution for vs2015
2015-05-02 10:58:11 +02:00
Frank Denis
95983d4471
Don't downcast size_t to int
2015-05-02 10:56:03 +02:00
Frank Denis
e084aec840
Add solution for vs2015
2015-05-02 10:42:43 +02:00
Frank Denis
1b0e51da5e
Use sodium_malloc() in the pwhash test.
2015-05-01 17:35:45 +02:00
Frank Denis
e0d1d042b7
Remove package.nuspec, package.targets, and package.xml
...
Via @woobs:
"package.nuspec, package.targets, and package.xml are generated from
[the package.config] file [...] thus it may be reasonable to remove them from
the repository"
2015-04-27 22:02:14 +02:00
Frank Denis
47dbfb351a
Merge pull request #256 from woobs/patch-1
...
Update NuGet configuration for version 1.0.3
2015-04-27 22:00:59 +02:00
woobs
baa488a6af
Update NuGet configuration for version 1.0.3
2015-04-27 13:22:42 -05: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
eb4e9e48f9
Turn ASAN errors into warnings in sodium_utils{2,3} tests
2015-04-24 15:11:29 +02:00
Frank Denis
3117ccf358
Use memcpy() instead of ugly casts. No changes to compiled code.
2015-04-24 13:52:56 +02:00
Frank Denis
957a29c469
salsa20_random_buf(): mix the output size with the key
2015-04-23 00:09:17 +02:00
Frank Denis
0b9d1cbc88
Add missing tests to the Visual Studio solutions
2015-04-21 20:41:30 +02:00
Frank Denis
70487753ee
JS target: window.crypto is not defined in webworkers; use self.crypto instead.
2015-04-20 14:26:27 +02:00
Frank Denis
c5556527ea
+ simple OSX build script
2015-04-20 12:47:12 +02:00
Frank Denis
ffc98b37b9
Let dist-build/ios.sh compile only for iOS and the iOS emulator.
2015-04-18 18:41:48 +02:00
Frank Denis
a26a126a51
Slightly revamp dist-build/ios.sh
...
- Compile arm32 and arm64 targets separately
- Compile for the iOS simulator
The resulting fat library include arm32, arm64, 32-bit simulator and
64-bit OSX targets.
This is a bit better than what we previously had regarding the simulator,
but still not optimal, as the 64-bit simulator version should also be
included. However, a fat library cannot include both the 64-bit simulator
version and a version for OSX since the architecture is the same.
The proper way to address this is probably to generate two libraries.
This requires some prior changes to Swift-Sodium.
2015-04-18 11:50:27 +02:00
Frank Denis
7a9dc9bdc8
Update ChangeLog
2015-04-17 23:37:51 +02:00
Frank Denis
575ce93058
+ crypto_box_seal()
2015-04-17 01:01:32 +02:00
Frank Denis
f740cb5968
Better separation between crypto_auth[_verify] and the NIST-like API.
2015-04-05 20:14:21 +02:00
Frank Denis
f379ab8766
Add a test for sodium_allocarray(0, x)
2015-03-23 21:47:44 +01:00
Frank Denis
dbcca2a501
Don't divide by zero if sodium_allocarray() is called with count=0
2015-03-23 21:43:27 +01:00
Frank Denis
6ab45891b8
Update ChangeLog
2015-03-11 18:24:18 +01:00
Frank Denis
adf636f5db
Android: Use app platform 21
2015-03-10 15:08:44 +01:00
Frank Denis
9d5c067ad2
Use getrandom(2) on Linux, if available.
2015-03-09 17:22:34 +01:00
Frank Denis
ceb72f25d8
Indentation
2015-03-09 15:09:27 +01:00
Frank Denis
ef4290b71c
Indentation
2015-02-21 16:15:35 +01:00
Frank Denis
3316db5c87
Use proper nonce length now that's it's a pointer in box_easy2 test.
2015-02-17 18:42:57 +01:00
Frank Denis
ef7d825f1f
__declspec() / __attribute__(()) shouldn't come before "typedef"
2015-02-17 17:38:54 +01:00
Frank Denis
a2a72d3472
Compare size_t values with ULL
2015-02-16 09:01:36 +01:00
Frank Denis
90447b0283
scrypt: keep r as a size_t value
2015-02-15 22:37:59 +01:00
Frank Denis
663fe8229e
scrypt: corrected pointer alias issues causing scrypt to fail on MIPS64
...
by jfoug <jfoug at cox.net> via JtR issue #1032
2015-02-15 22:31:04 +01:00
Frank Denis
788d8d0178
Make bin2hex() code consistent with hex2bin()
2015-02-10 19:34:11 +01:00
Frank Denis
ae66518567
Update ChangeLog
2015-02-10 17:06:06 +01:00
Frank Denis
f8af1790dd
Constant-time hex2bin.
2015-02-10 17:01:51 +01:00