Bernd Meyer
f2991f555d
Remove improper free of userdata; It's for the garbage collection to free
2016-03-30 12:35:06 +11:00
Johny Mattsson
88369a5bd3
Merge pull request #1072 from TerryE/dev-encoder
...
Addition of encoder module with base64 and hex encode/decode as per #925
2016-02-26 12:35:02 +11:00
TerryE
8353991722
Update encoder files after #925 & #1072 review comments
2016-02-26 00:44:33 +00:00
Adam Bonner
96f905bf81
Crypto-new_hash Improved code based on review in #1037
2016-02-21 21:13:06 -08:00
Adam Bonner
332b53b9db
Initial implementation of a chunk capable hash function in crypto module
2016-02-21 21:13:06 -08:00
TerryE
ffa7ee9b67
Addition of encoder module with bas64 and hex encode/decode as per #925
2016-02-21 04:18:27 +00:00
cheloftus
58dd15e1d1
Added crypto.fhash function for hashing files
2016-02-05 22:19:00 +00:00
Johny Mattsson
5b381d2f1e
Added AES support to crypto module.
...
Merely a wrapper around the (undocumented) internal SDK AES functions.
2016-01-19 15:19:11 +11:00
Johny Mattsson
4e8ef87d03
Reworked module registration, removed modules.h
...
Module creation & registration now made a lot simpler. In essence,
each module file is now self-contained and only needs a
NODEMCU_MODULE(MYNAME, "myname", myname_map, luaopen_myname);
line to both be automatically recognised by the Lua initialization
as well as honor the LUA_USE_MODULES_MYNAME #define.
2015-12-16 16:09:16 +11:00
TerryE
b773290b8c
Major cleanup of module registration pass 2.
...
carrying on Johny's edits as per my comments on #810
2015-12-16 11:21:40 +11:00
Johny Mattsson
6b6456be47
Major cleanup of module registration.
...
As per #810 & #796 , only LUA_OPTIMIZE_MEMORY=2 & MIN_OPT_LEVEL=2 are
supported when building. This commit effects that limitation.
With this change modules/auxmods.h no longer needs to be updated for
every new module, nor do module writers need to cater for a hypothetical
LUA_OPTIMIZE_MEMORY < 2 scenario.
2015-12-12 15:03:40 +11:00
Johny Mattsson
7867fd083c
Move crypto things to irom0.text segment.
...
This releases 1168 bytes back to the heap.
2015-06-05 13:03:08 +10:00
Johny Mattsson
2d1e69151e
Extended Lua crypto module with hash & hmac.
2015-06-02 18:17:30 +10:00
=
2128c42f02
Add headers for discovered rom functions
2015-05-28 15:10:12 -05:00
=
59df376a3a
Rename base64Encode to toBase64 and hexEncode to toHex
2015-05-28 09:00:13 -05:00
=
c8145434c3
Add crypto.hexEncode and crypto.mask
2015-05-28 07:47:09 -05:00
=
ca78b9ea2c
Add crypto module initially containing sha1 and base64_encode.
2015-05-28 07:46:57 -05:00