19b11eb9a8
- Removed TactilityC, moved its symbols to existing modules and several new ones (pthread-module, c-symbols-module, cpp-symbols-module, posix-symbols-module, freertos-module). - Removed Firmware subproject and moved main() into Tactility subproject. - Strengthened application archive, path, version, stack-size, and device validation. - Moved symbol resolution for elf_loader to app-esp32-module. - Improved `struct Module` declarations and made module and symbol definitions in modules more consistent. - Removed old http download code from Tactility subproject. - Rename app-module's source files for consistency. - Add missing pthread symbols. - Kernel module symbols are now resolvable on all platforms.
28 lines
609 B
C++
28 lines
609 B
C++
// SPDX-License-Identifier: Apache-2.0
|
|
#include <crypt/crypt.h>
|
|
#include <crypt/hash.h>
|
|
#include <crypt/module.h>
|
|
|
|
extern "C" {
|
|
|
|
static const ModuleSymbol SYMBOLS[] = {
|
|
DEFINE_MODULE_SYMBOL(crypt_get_iv),
|
|
DEFINE_MODULE_SYMBOL(crypt_generate_iv),
|
|
DEFINE_MODULE_SYMBOL(crypt_encrypt),
|
|
DEFINE_MODULE_SYMBOL(crypt_decrypt),
|
|
DEFINE_MODULE_SYMBOL(djb2_str),
|
|
DEFINE_MODULE_SYMBOL(djb2_data),
|
|
MODULE_SYMBOL_TERMINATOR
|
|
};
|
|
|
|
Module crypt_module = {
|
|
.name = "crypt",
|
|
.start = nullptr,
|
|
.stop = nullptr,
|
|
.drivers = nullptr,
|
|
.symbols = SYMBOLS,
|
|
.internal = nullptr,
|
|
};
|
|
|
|
}
|