Skip to main content
C# integrates through the SDK’s C ABI via P/Invoke (DllImport/LibraryImport). The native library is evb_e2ee_ffi.dll / libevb_e2ee_ffi.so (built from bindings/dart/rust of everabyte/crypto-sdk, or fetched from GitHub Releases).

1. Install

Declare the imports (a subset — full list in the C ABI reference):

2. Account key (UMK) — once, kept in your secret store

Keep the 96 UMK bytes in your secret store (Azure Key Vault, DPAPI-protected file, HSM). Everabyte receives only public keys and wrapped blobs.

3. Encrypt → upload → attach envelope

4. Download → decrypt

Error handling: every call returns 0 on success, negative otherwise; evb_last_error(buf, cap) reads the secret-free message (call with cap = 0 first to get the required size).

Next