28 Commits

Author SHA1 Message Date
Gordon Williams
3bca8f096a Added more helpful error messages for TLS 2016-11-21 17:03:11 +00:00
Gordon Williams
0e27a8bc3a docs 2016-09-26 15:59:31 +01:00
wilberforce
51aaddd6a3 ESP8266 add flash_memcpy 2016-04-29 17:17:04 +12:00
Rhys Williams
cae475cad6 move shaX.c constants to flash, 1072 bytes additional heap 2016-04-29 14:10:42 +12:00
Rhys Williams
62815fe124 #define USE_AES to make SHAx functions avaiable on ESP8266 2016-03-29 19:07:10 +13:00
Uri Shaked
f63ec52194 Make crypto compile for ESP8266
Before this fix, compiler complained about `invalid initializer`.
2016-02-23 13:31:02 +02:00
Gordon Williams (u36)
dc5cd0df3c Allow a function to be called to retrieve key/certificate 2016-01-20 17:24:02 +00:00
Gordon Williams (u36)
671407b205 careless - remove debug print 2016-01-20 16:42:54 +00:00
Gordon Williams (u36)
d968917965 Improve malloc behaviour for crypto lib (try and free all command history is first alloc fails)
Improve HTTPS error messages
2016-01-20 13:00:14 +00:00
Gordon Williams
43685388a3 removing compile warnings 2015-12-07 14:12:52 +00:00
Gordon Williams
ac7724649b improve docs - report libraries as libraries, sort regardless of case 2015-11-24 14:35:41 +00:00
Thorsten von Eicken
f1a06a5636 missing ; 2015-11-23 22:15:45 -08:00
Gordon Williams
4111ee167a Rename USE_HTTPS to USE_TLS, and enable by default for Pico + Linux
Add 'tls' module with 'connect' - for TLS Socket connections
2015-11-19 17:02:06 +00:00
Gordon Williams
3db2f75ea1 Now automatically allocating all required data in JsVars 2015-11-18 18:38:42 +00:00
Gordon Williams
2760040a26 changes to stop full stdlib being pulled in 2015-11-17 14:17:07 +00:00
Gordon Williams
8c8f84380a compile HTTPS support only if requested with USE_HTTPS 2015-11-17 12:46:18 +00:00
Gordon Williams
8cdc75fa28 first slightly hacky (but working) HTTPS implementation 2015-11-17 11:17:03 +00:00
Gordon Williams
929274c2bd bug in mbedtls? won't build with just RSA 2015-11-17 11:01:45 +00:00
Gordon Williams
6dcce44354 fix IV initialisation 2015-11-16 16:24:30 +00:00
Gordon Williams
158e5ad9b5 added configurable hashes 2015-11-16 16:12:04 +00:00
Gordon Williams
79136dc131 Make sure PBKDF2 uses SHA512 2015-11-16 15:26:35 +00:00
Gordon Williams
907ae16027 allow lower key sizes for PBKDF2 2015-11-16 14:49:39 +00:00
Gordon Williams
1cdec0aec1 doc tweaks 2015-11-09 09:19:04 +00:00
Gordon Williams
3d5ea30469 added SHA1 and CFB, CTR and ECB AES modes. Moved encrypt/decrypt to require('crypto').AES.encrypt 2015-11-05 17:37:30 +00:00
Gordon Williams
1000917ac2 Added fake alloc and calloc for mbedtls (doesn't look like they should really be needed though - grumble)
Lowered Pico JsVar count TEMPORARILY - because of pointless RAM usage by mbed
fix mnem leak in PBDK2
2015-10-02 16:02:10 +01:00
Gordon Williams
eb48e0c47b add iv support 2015-10-02 15:17:51 +01:00
Gordon Williams
26f965510a working PBKDF2, and AES doing something, but not tested 2015-10-01 18:49:30 +01:00
Gordon Williams
dba7b772af first commit - not building yet 2015-09-30 15:53:15 +01:00