Skip to content

Commit

Permalink
rabe: add aes
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Oct 18, 2024
1 parent 268a78d commit 40ddd94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion func/rabe/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!";
Expand Down
7 changes: 6 additions & 1 deletion tasks/rabe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 40ddd94

Please sign in to comment.