Commit Graph

1669 Commits

Author SHA1 Message Date
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
Frank Denis
2fb83ade4c crypto_sign_detached(): no need to store a copy of the public key on the stack 2015-02-10 13:40:12 +01:00
Frank Denis
4723c3d37d Remove useless comment 2015-02-08 17:07:26 +01:00
Frank Denis
b15819fa60 Spacing 2015-02-08 17:04:15 +01:00
Frank Denis
2d3c61b3f2 armv7 -> armv7-a 2015-02-08 17:03:38 +01:00
Frank Denis
aeb26be748 Android: Use app platform 18 2015-02-08 11:30:03 +01:00
Frank Denis
53a5914a4c android-mips -> android-mips32 2015-02-08 10:42:27 +01:00
Frank Denis
0022a42f5a Don't build arm and armv7 android targets in the same directory 2015-02-08 10:34:39 +01:00
Frank Denis
046df856fa Revert "Disable PIE on Android"
This reverts commit cdf863c731.
2015-02-08 10:26:11 +01:00
Frank Denis
9eee6e6dd3 Merge pull request #243 from mosin/patch-1
android ndk requires arch to be arm not armv7
2015-02-07 15:43:01 +01:00
mosin
4d5863a6cc android ndk requires arch to be arm not armv7
In the android-build.sh script, the call the ${ANDROID_NDK_HOME}/build/tools/make-standalone-toolchain.sh passes TARGET_ARCH as armv7 where as around line 117 of make-standalone-toolchain.sh requires ARCH to be {arm,x86,mips,arm64,x86_64,mips64}
2015-02-07 09:31:49 -05:00
Frank Denis
194a3c6048 Update ChangeLog 2015-02-03 17:26:16 +01:00
Frank Denis
a1b3da7dd9 Add crypto_stream_xsalsa20_ic() 2015-02-02 21:27:19 +01:00
Frank Denis
666fd4323b Add a test for crypto_stream_salsa20_xor_ic() 2015-02-02 21:27:12 +01:00
Frank Denis
cdf863c731 Disable PIE on Android 2015-01-31 12:31:08 +01:00
Graydon Hoare
4b6d9994be Add configure.lineno to .gitignore 2015-01-31 12:28:45 +01:00
Frank Denis
152593ad82 Merge branch 'master' of github.com:jedisct1/libsodium
* 'master' of github.com:jedisct1/libsodium:
  Thanks @zonyitoo for libsodium-sys (rust native bindings) and OVH
2015-01-31 12:25:56 +01:00
Frank Denis
f61e179d8e (p1 - p2 == 0) => (p1 == p2)
No binary changes on supported platforms except on gcc/armv7l where
the control flow remains identical but permutative statements get switched.
2015-01-31 12:18:51 +01:00
Frank Denis
e6f97c8b43 Thanks @zonyitoo for libsodium-sys (rust native bindings) and OVH 2015-01-28 00:06:58 +01:00
Frank Denis
4a0e7cfc57 Update ChangeLog 2015-01-26 07:27:12 +01:00
Frank Denis
0938b7cf9a Export _crypto_generichash_statebytes() 2015-01-24 11:30:05 +01:00
Frank Denis
5db61c617b Add statebytes for crypto_hmac_* 2015-01-23 23:08:49 +01:00
Frank Denis
d0e9b8f69c Suggest crypto_generichash_statebytes() instead of sizeof() 2015-01-23 22:54:27 +01:00
Frank Denis
b5deb4d070 + crypto_hash_sha(256|512)_statebytes 2015-01-23 11:17:40 +01:00
Frank Denis
cdbb2dfe75 Import moved quirks.h 2015-01-23 11:02:13 +01:00