feat: secure enclave is on going

This commit is contained in:
2023-12-09 11:43:21 +08:00
parent fa1cd80fc8
commit 2034db589a
6 changed files with 104 additions and 6 deletions

View File

@@ -1,3 +1,12 @@
pub fn is_support_secure_enclave() -> bool {
false
use swift_rs::{Bool, SRString};
use swift_rs::swift;
swift!(fn is_support_secure_enclave() -> Bool);
swift!(fn print_greeting(name: SRString) -> Bool);
pub fn is_support_se() -> bool {
unsafe {
print_greeting(SRString::from("hatter"));
}
unsafe { is_support_secure_enclave() }
}