Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3353675
D10330.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D10330.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 10:51 AM (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575076
Default Alt Text
D10330.diff (2 KB)
Attached To
Mode
D10330: Intergate native_rust_library C++ fiels with clang formatting
Attached
Detach File
Event Timeline
Log In to Comment