Page MenuHomePhabricator

D10330.id34623.diff
No OneTemporary

D10330.id34623.diff

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<uint8_t> buffer);
-void aesEncrypt(rust::Slice<uint8_t> key, rust::Slice<uint8_t> plaintext, rust::Slice<uint8_t> sealedData);
-void aesDecrypt(rust::Slice<uint8_t> key, rust::Slice<uint8_t> sealedData, rust::Slice<uint8_t> plaintext);
+void aesEncrypt(
+ rust::Slice<uint8_t> key,
+ rust::Slice<uint8_t> plaintext,
+ rust::Slice<uint8_t> sealedData);
+void aesDecrypt(
+ rust::Slice<uint8_t> key,
+ rust::Slice<uint8_t> sealedData,
+ rust::Slice<uint8_t> 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<uint8_t> buffer){
+void aesGenerateKey(rust::Slice<uint8_t> buffer) {
AESCrypto::generateKey(buffer);
}
-void aesEncrypt(rust::Slice<uint8_t> key, rust::Slice<uint8_t> plaintext, rust::Slice<uint8_t> sealedData){
+void aesEncrypt(
+ rust::Slice<uint8_t> key,
+ rust::Slice<uint8_t> plaintext,
+ rust::Slice<uint8_t> sealedData) {
AESCrypto::encrypt(key, plaintext, sealedData);
}
-void aesDecrypt(rust::Slice<uint8_t> key, rust::Slice<uint8_t> sealedData, rust::Slice<uint8_t> plaintext){
+void aesDecrypt(
+ rust::Slice<uint8_t> key,
+ rust::Slice<uint8_t> sealedData,
+ rust::Slice<uint8_t> 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'],

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 6:20 AM (21 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2593040
Default Alt Text
D10330.id34623.diff (2 KB)

Event Timeline