Christophe Diederichs
f79aed4eee
turn off worker_threads in browser ( #52 )
2020-11-12 14:04:40 +01:00
Christophe Diederichs
66494ec3b5
0.7.1
2020-09-22 15:56:40 +02:00
Christophe Diederichs
97200f90da
0.7.0
2020-09-22 14:56:20 +02:00
Christian Bundy
656d6d251e
Add crypto_auth ( #32 )
...
* add crypto_auth_hmac methods
2020-09-22 14:49:40 +02:00
Christophe Diederichs
ab004d8022
Add ed25519 conversion operations ( #46 )
...
* add ed25519 methods and constants
2020-09-22 14:46:45 +02:00
Christophe Diederichs
ce5ac41ecd
0.6.3
2020-09-15 17:39:54 +02:00
Mathias Buus
a546f3e51d
0.6.2
2020-08-12 15:40:16 +02:00
Emil Bay
a338ae9f9d
Missing helpers ( #24 )
...
* Detach buffers by sending to an empty message channel
* Move helpers out
* fix import
* export helpers
* Try browser testing
* messagechannel check
* xvfb-run --auto-servernum npm run test-browser fails weirdly on ci, removing
Co-authored-by: Mathias Buus <mathiasbuus@gmail.com>
2020-08-12 15:39:14 +02:00
Christophe Diederichs
e4693065fd
update dependencies
2020-07-13 14:53:38 +02:00
Emil Bay
f11ff5a727
0.6.1
2020-06-24 16:30:16 +02:00
Emil Bay
cc52e58504
Update package metadata
2020-06-24 15:02:49 +02:00
Emil Bay
f3a80cb6f5
Upgrade deps
2020-06-24 14:49:38 +02:00
Emil Bay
30c3342156
Make linter happy
2020-06-24 14:08:55 +02:00
Mathias Buus
fc90cbedba
0.6.0
2020-06-18 17:16:43 +02:00
Mathias Buus
63fb70028e
bump sodium-test
2020-06-18 17:15:53 +02:00
Christophe Diederichs
b44f83f0a8
Split library into modules ( #20 )
...
* crypto_stream: signature change needed to modularise
* move ed25519 arithmetic to separate module
* module: poly1305
* module: crypto_scalarmult
* module: crypto_hash
* module: crypto_sign
* module: crypto_secretbox
* move verify functions to crypto_verify module
* leftover crypto_stream functions
* module: crypto_onetimeauth
* module: crypto_box
* tidy up
* require ed25519.js
* update: crypto_hash
* add chacha20; align API with PR#21
* update sha512 to wasm module
* fix bugs in crypto_sign
* be standard
* add: crypto_box_seed_keypair; alias crypto_kx methods to crypto_box
* scalarmult: import curve methods; be standard
* correction: crypto_kx is not actually an alias of crypto_box
* export _9 constant field element
* add: crypto_box_seed_keypair
* removed duplicate module.exports declaraion
* declare constants about exports
* rename memzero -> sodium-memzero
* update sodium_memzero function to arr.fill(0)
* tidy: remove legacy functions
* added: crypto_aead_chacha20poly1305_ietf methods
* listen to linter
* add assertions
* chacha: readUint32Le generalised for uint8array; aead: standard fix
* add null check on ad param
* added: sodium_memcmp
* export sodium_memcmp
* export crypto_verify module
* sodium_memcmp returns boolean
* added: sodium_is_zero
* catch syntax error
* throw if crypto_aead cannot validate, fix typo in crypto_verify
* move chacha20 alg to external module
* use Uint8Arrays instead of buffers
* change checks to assertions
* bump to chacha 1.0.3 - remove Buffer dependency
* reduce code branching, align return values with sodium-native
* add sha-wasm deps to package.json
* standard fixes
* bump chacha20 to 1.0.4: remove Buffer dep
* move crypto_hash_sha256 to module to uncouple wasm dependencies
* add endian check: all other modules require members of this set
* correct filename: crypto_hash_sha256
* export constant: crypto_hash_sha512_BYTES
2020-06-18 17:09:03 +02:00
Mathias Buus
51f8fbc2d3
0.5.6
2020-03-04 14:52:37 +01:00
Mathias Buus
e1ca83f1bd
0.5.5
2018-03-19 19:03:43 +01:00
Peter van Hardenberg
c81ef709d1
react-native doesn't want crypto set to an empty module ( #14 )
...
React-Native is sort of like a browser, sort of a native environment. On react-native we don't have the browser's crypto implementation, so we need to require react-native-crypto. We can rewrite the module requirement to do that using the extraNodeModules feature in rn-cli.config.js, but the metro packager assumes that if there's a "browser" field in package.json that it's relevant to react-native libraries unless there's also a "react-native" field. Hurray.
Anyway, this silly little patch tells metro not to replace crypto with an empty module but actually to use whatever you currently have crypto set to (which is not solved here, so you'll still have to do that.)
2018-03-19 18:58:24 +01:00
Mathias Buus
5ccdcdee17
0.5.4
2017-11-19 13:16:51 +01:00
Mathias Buus
48081c6896
ignore crypto in the browser
2017-11-19 13:16:35 +01:00
Mathias Buus
b1741bfdae
0.5.3
2017-11-17 12:09:34 +01:00
Emil Bay
b883b2a8df
0.5.2
2017-11-03 08:19:11 +01:00
Mathias Buus
5511bafdba
0.5.1
2017-07-13 16:52:43 +02:00
Mathias Buus
212550db1b
bump sodium-test and minor tweak
2017-07-13 16:52:30 +02:00
Mathias Buus
07e1bc4ed6
0.5.0
2017-06-28 11:17:18 +02:00
Mathias Buus
6561ff99f1
use xsalsa20 and support crypto_stream_instance
2017-06-28 11:14:00 +02:00
Emil Bay
0f249a7e8f
Run tests with browser-run
2017-06-19 22:39:11 +02:00
Emil Bay
fa6f2a836c
0.4.0
2017-06-19 22:36:13 +02:00
Emil Bay
75bad77847
Upgrade sodium-test
2017-06-19 22:34:37 +02:00
Julian Gruber
642a68c2a1
Add browser support ( #1 )
...
* add browser test target
* add browser-manual target
2017-06-19 21:44:32 +02:00
Mathias Buus
abedfa6362
0.3.1
2017-06-12 11:01:30 +02:00
Mathias Buus
de8639f558
use siphash24
2017-06-12 11:01:21 +02:00
Mathias Buus
d546f63e11
0.3.0
2017-06-12 10:19:02 +02:00
Mathias Buus
95732bdd4f
add crypto_shorthash ( #4 )
2017-06-12 10:05:49 +02:00
Emil Bay
1967024766
Update to new blake2b
2017-06-11 20:23:06 +02:00
Emil Bay
56913733b9
0.2.0
2017-06-07 22:39:24 +02:00
Emil Bay
94e3891f67
Added crypto_kdf
2017-06-07 22:38:40 +02:00
Emil Bay
afa3b5fc04
0.1.0
2017-06-06 21:05:48 +02:00
Emil Bay
5397910bbb
Add blake2b for generichash
2017-06-06 21:04:36 +02:00
Emil Bay
92bea299c6
Add sodium-test script
2017-04-11 22:19:34 +02:00
Mathias Buus
709001fd4e
0.0.1
2017-02-12 03:37:58 +01:00
Mathias Buus
2d67f235c3
add crypto_generichash
2017-02-12 03:37:17 +01:00
Mathias Buus
e54c674afc
first commit
2017-01-24 11:41:06 +01:00