From 40ddd946841e1a1a7987b7a92e751a0d73229c9f Mon Sep 17 00:00:00 2001 From: Carlos Segarra Date: Sun, 6 Oct 2024 22:41:13 +0000 Subject: [PATCH] rabe: add aes --- func/rabe/test.cpp | 2 +- tasks/rabe.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/func/rabe/test.cpp b/func/rabe/test.cpp index 077b6a2..5237027 100644 --- a/func/rabe/test.cpp +++ b/func/rabe/test.cpp @@ -5,7 +5,7 @@ int main() { // Create temporary encryption context for this test - auto& ctx = rabe::CpAbeContextWrapper::get(rabe::ContextFetchMode::Create); + auto& ctx = tless::abe::CpAbeContextWrapper::get(tless::abe::ContextFetchMode::Create); // Prepare encryption std::string plainText = "dance like no one's watching, encrypt like everyone is!"; diff --git a/tasks/rabe.py b/tasks/rabe.py index 361fec6..d9a56c0 100644 --- a/tasks/rabe.py +++ b/tasks/rabe.py @@ -60,6 +60,11 @@ def build(ctx, clean=False): # Install the header in the WASM sysroot too src_header = join(rabe_cpp_dir, "rabe_bindings.hpp") dst_header = join( - build_env["FAASM_WASM_HEADER_INSTALL_DIR"], "rabe_bindings.hpp" + build_env["FAASM_WASM_HEADER_INSTALL_DIR"], "tless_abe.h" + ) + copy(src_header, dst_header) + src_header = join(rabe_cpp_dir, "tless_aes.h") + dst_header = join( + build_env["FAASM_WASM_HEADER_INSTALL_DIR"], "tless_aes.h" ) copy(src_header, dst_header)