diff --git a/native/native_rust_library/RustAESCrypto.h b/native/native_rust_library/RustAESCrypto.h --- a/native/native_rust_library/RustAESCrypto.h +++ b/native/native_rust_library/RustAESCrypto.h @@ -5,7 +5,13 @@ namespace comm { void aesGenerateKey(rust::Slice buffer); -void aesEncrypt(rust::Slice key, rust::Slice plaintext, rust::Slice sealedData); -void aesDecrypt(rust::Slice key, rust::Slice sealedData, rust::Slice plaintext); +void aesEncrypt( + rust::Slice key, + rust::Slice plaintext, + rust::Slice sealedData); +void aesDecrypt( + rust::Slice key, + rust::Slice sealedData, + rust::Slice plaintext); } // namespace comm diff --git a/native/native_rust_library/RustAESCrypto.cpp b/native/native_rust_library/RustAESCrypto.cpp --- a/native/native_rust_library/RustAESCrypto.cpp +++ b/native/native_rust_library/RustAESCrypto.cpp @@ -3,16 +3,22 @@ namespace comm { -void aesGenerateKey(rust::Slice buffer){ +void aesGenerateKey(rust::Slice buffer) { AESCrypto::generateKey(buffer); } -void aesEncrypt(rust::Slice key, rust::Slice plaintext, rust::Slice sealedData){ +void aesEncrypt( + rust::Slice key, + rust::Slice plaintext, + rust::Slice sealedData) { AESCrypto::encrypt(key, plaintext, sealedData); } -void aesDecrypt(rust::Slice key, rust::Slice sealedData, rust::Slice plaintext){ +void aesDecrypt( + rust::Slice key, + rust::Slice sealedData, + rust::Slice plaintext) { AESCrypto::decrypt(key, sealedData, plaintext); } -} +} // namespace comm diff --git a/scripts/get_clang_paths.js b/scripts/get_clang_paths.js --- a/scripts/get_clang_paths.js +++ b/scripts/get_clang_paths.js @@ -27,6 +27,11 @@ extensions: ['java'], excludes: ['generated'], }, + { + path: 'native/native_rust_library', + extensions: ['cpp', 'h'], + excludes: ['target', 'lib.rs.h', 'cxx.h'], + }, { path: 'web/cpp', extensions: ['cpp', 'h'],