Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / apple / XCFramework / e2eePqc.def
e2eePqc.def26 lines · 1.1 KiBRaw
| 1 | # cinterop .def against c_bridge.rs headers (verbatim per IOS_PQC_NOTES.md). |
| 2 | # |
| 3 | # Phase 3 creates this file at |
| 4 | # `library/everysync-core/src/nativeInterop/cinterop/e2eePqc/e2eePqc.def` |
| 5 | # next to the cbindgen-generated `e2ee_pqc.h`. This copy documents the exact |
| 6 | # surface: bind EXACTLY the 10 fns below. Swift never calls Rust directly — |
| 7 | # only via the shared XCFramework. |
| 8 | # |
| 9 | # Bound (10): |
| 10 | # pqc_kem_keygen / pqc_kem_encaps / pqc_kem_decaps |
| 11 | # pqc_dsa_keygen / pqc_dsa_sign / pqc_dsa_verify (1 valid / 0 invalid / -1 parse error) |
| 12 | # pqc_bundle_build / pqc_bundle_split |
| 13 | # pqc_free / pqc_secure_zero |
| 14 | # Explicitly NOT bound: |
| 15 | # pqc_identity_keygen (identity assembly stays in Kotlin: |
| 16 | # PqcIdentityHandle.loadOrCreate over SecureStore) |
| 17 | # pqc_link_keygen / pqc_link_pub_from_seed (FindFamily link keys) |
| 18 | # pqc_security_code (pure SHA-256 — SyncDigest in Kotlin) |
| 19 | # pqc_bundle_is_valid / pqc_bundle_inspect (diagnostics only; the Kotlin |
| 20 | # splitBundle null-check covers validity) |
| 21 | |
| 22 | headers = e2ee_pqc.h |
| 23 | headerFilter = e2ee_pqc/* |
| 24 | package = e2ee.pqc.native |
| 25 | compilerOpts = -Ie2ee_pqc |
| 26 | linkerOpts = -le2ee_pqc |