2022-05-29 19:05:57 +00:00
|
|
|
local Lockbox = {};
|
|
|
|
|
2023-06-21 23:04:39 +00:00
|
|
|
-- cc-mek-scada lockbox version
|
2023-06-25 21:53:02 +00:00
|
|
|
Lockbox.version = "1.0"
|
2023-06-21 23:04:39 +00:00
|
|
|
|
2022-05-29 19:05:57 +00:00
|
|
|
--[[
|
|
|
|
package.path = "./?.lua;"
|
|
|
|
.. "./cipher/?.lua;"
|
|
|
|
.. "./digest/?.lua;"
|
|
|
|
.. "./kdf/?.lua;"
|
|
|
|
.. "./mac/?.lua;"
|
|
|
|
.. "./padding/?.lua;"
|
|
|
|
.. "./test/?.lua;"
|
|
|
|
.. "./util/?.lua;"
|
|
|
|
.. package.path;
|
|
|
|
--]]
|
|
|
|
Lockbox.ALLOW_INSECURE = true;
|
|
|
|
|
|
|
|
Lockbox.insecure = function()
|
|
|
|
assert(Lockbox.ALLOW_INSECURE,
|
|
|
|
"This module is insecure! It should not be used in production." ..
|
|
|
|
"If you really want to use it, set Lockbox.ALLOW_INSECURE to true before importing it");
|
|
|
|
end
|
|
|
|
|
|
|
|
return Lockbox;
|