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

1509 Commits

Author SHA1 Message Date
Frank Denis
965eaeac46 Revert "Export sodium_increment() to Emscripten"
This reverts commit a8e4115851.
2015-06-28 15:44:06 +02:00
Frank Denis
a8e4115851 Export sodium_increment() to Emscripten 2015-06-22 17:41:55 +02:00
Frank Denis
3822caf6c7 Micro-optimization 2015-06-22 15:56:35 +02:00
Frank Denis
e2fca8cac5 Add sodium_increment() 2015-06-22 15:44:58 +02:00
Frank Denis
5f74196b0f scrypt extra parameters checks 2015-06-19 18:55:41 +02:00
Frank Denis
392f094a90 Merge pull request #273 from JackWink/feature/jack/android-armv8-build-script
add arm64-v8a support for android builds
2015-06-17 20:14:20 +02:00
Jack Wink
b87b3a7ac7 add arm64-v8a support for android builds 2015-06-17 14:05:46 -04:00
Frank Denis
facb3c4343 Implicit conversions 2015-06-16 22:42:13 +02:00
Frank Denis
d35b364f31 Blake2b: fix flags on architectures with < 32-bit int 2015-06-13 17:31:49 +02:00
Frank Denis
b2dd3453d5 Merge pull request #269 from dconnolly/mscrypto
If browser `crypto` is not available, try `msCrypto` before assuming a Node environment.
2015-06-09 00:49:51 +02:00
Deirdre Connolly
f2afab4b1b If browser crypto is not available, try msCrypto before assuming a
Node environment
2015-06-08 18:25:51 -04:00
Frank Denis
f46439c1e2 Ensure that PBKDF2_SHA256() is not used to output more than 128 Go. 2015-06-06 12:46:22 +02:00
Frank Denis
86d92bc11d SHA512: just use memcpy() to initialize the state 2015-06-06 12:33:11 +02:00
Frank Denis
ba1cd6a128 SHA256: use uint64_t for the counter instead of two uint32_t 2015-06-06 12:32:23 +02:00
Frank Denis
21fc07e6f4 Leverage randombytes_salsa20_random_rekey() 2015-06-01 12:45:45 +02:00
Frank Denis
3c3635e53a salsa20_random(): just abort(3) if the pid changes and _stir() wasn't called 2015-06-01 12:40:58 +02:00
Frank Denis
2efa85d283 -dev 2015-06-01 10:44:02 +02:00
Frank Denis
b2f5f66c86 Windows Store compat 2015-06-01 10:43:39 +02:00
Frank Denis
df9209a235 Document IETF-compatible ChaCha20 2015-06-01 10:33:09 +02:00
Frank Denis
315029188e Suggest randombytes_stir() 2015-06-01 10:22:01 +02:00
Frank Denis
e326ef9030 Do not use timeval. The structure is not defined on Windows RT. 2015-05-29 17:40:37 +02:00
Frank Denis
3bd6b8d074 Further simplify WINAPI_DESKTOP 2015-05-29 17:40:37 +02:00
Frank Denis
ada287ad56 Disable guarded memory on WinRT 2015-05-29 17:40:32 +02:00
Frank Denis
305d5e02e2 + ARM.props 2015-05-29 17:40:31 +02:00
Frank Denis
7821009bff Do not assume that _MSC_VER being defined implied x86 or x64 2015-05-29 17:40:25 +02:00
Frank Denis
c7179cea2d .gitignore 2015-05-28 10:43:57 +02:00
Frank Denis
5b851b4520 Remove common system headers already included in utils.h 2015-05-27 21:38:16 +02:00
Frank Denis
c1c28b0ee5 demo -> example 2015-05-27 21:36:54 +02:00
Frank Denis
e3d71367fc Add a basic Makefile for the demos 2015-05-27 21:35:37 +02:00
Frank Denis
0417759d9c Make utils.c a header 2015-05-27 21:35:10 +02:00
Frank Denis
a53c566375 SIZE -> LEN, for consistency 2015-05-27 21:19:24 +02:00
Frank Denis
8b8f89d437 fputs(..., stdout) -> printf()
This reduces the number of functions we use to print something from 5 to 4 (!).
2015-05-27 21:09:32 +02:00
Frank Denis
66819cf0e0 The message and signature aren't secret data 2015-05-27 21:05:51 +02:00
Frank Denis
5a57615f44 print_hex() is always followed by putc('\n'), so let it do it directly 2015-05-27 21:04:32 +02:00
Frank Denis
944857bbf5 The first line already said these were utility functions, just like the file name 2015-05-27 21:01:57 +02:00
Frank Denis
596c65c745 r -> ret 2015-05-27 21:01:49 +02:00
Frank Denis
a313e0be66 Demos: let prompt_input() add extra \n itself 2015-05-27 20:53:54 +02:00
Frank Denis
9b209f0078 generichash_stream example 2015-05-27 20:35:40 +02:00
Frank Denis
b1bcecf086 putc('\n', stdout) or putchar('\n') - pick one
And remove duplicate putchar('\n') to improve code clarity
2015-05-27 20:27:07 +02:00
Frank Denis
071c467ff3 box demos: do not attempt to print anything past the end of the plaintext 2015-05-27 20:05:15 +02:00
Frank Denis
c28886dc42 Demos: remove excessive \n 2015-05-27 20:02:20 +02:00
Frank Denis
385b44aee5 sign demo: fix weird max message length 2015-05-27 20:01:03 +02:00
Frank Denis
a67f42e015 sign demo: print signature and message separately 2015-05-27 20:00:05 +02:00
Frank Denis
9060457fac Make prompt_input accept fixed-length and variable-length input.
Now that strings have the correct size, but no trailing \0, puts() cannot safely be
used any more.
2015-05-27 18:10:28 +02:00
Frank Denis
cf6106e022 + box_detached demo 2015-05-27 17:24:20 +02:00
Frank Denis
a14dc377bf Use meaningful variable names in shorthash demo 2015-05-27 17:17:36 +02:00
Frank Denis
3eef43eead Remove onetimeauth demo 2015-05-27 17:14:01 +02:00
Frank Denis
a549360201 Display actual data, do not suggest that the nonce is part of the ciphertext 2015-05-27 16:57:51 +02:00
Frank Denis
57fb685157 Use meaningful variable names in box.c 2015-05-27 16:54:42 +02:00
Frank Denis
5b4a40e1f6 Update auth.c demo description. 2015-05-27 16:34:06 +02:00