appattest-rs
A Rust module for validating Apple App Attestations and Assertions, ensuring the integrity and authenticity of apps running on iOS devices.
Overview
appattest-rs is a rust-based implementation for integrating Apple's App Attestation mechanism into your server-side applications. This allows you to verify that the app communicating with your server is genuine and has not been modified. This crate is particularly useful for enhancing the security of your iOS applications by utilizing Apple's DeviceCheck capabilities.
flowchart LR
A[Start] --> B[Decode Base64 CBOR Data]
B --> C{Is Decoding Successful?}
C -->|Yes| D[Create Assertion or Attestation Object]
C -->|No| E[Decoding Failure and Exit]
D --> F{Verify Assertion/Attestation}
F -->|Yes| G[Verification Successful]
F -->|No| H[Verification Failure]
G --> I[End Process]
H --> I
style A fill:#f9f,stroke:#333,stroke-width:2px,color:black
style I fill:#ccf,stroke:#333,stroke-width:2px,color:black
style G fill:#cfc,stroke:#393,stroke-width:2px,color:black
style H fill:#f99,stroke:#933,stroke-width:2px,color:black
style E fill:#f99,stroke:#933,stroke-width:2px,color:black
Features
- Validation of App Attestations: Ensure that the attestation received from an iOS device is valid and conforms to Apple's guidelines.
- Assertion Verification: Verify assertions made by iOS applications to confirm their authenticity.
Usage
Verifying an Attestation
use Attestation;
Verifying an Assertion
use Assertion;
use ;
References
For more detailed documentation, visit the following resources: