Skip to content

Conversation

HS3003991
Copy link

CAL MacOS implementation:

  • Supported with RSA: Encryption, Decryption, Sign, Verify
  • Supported with ECDSA: Sign and Verify
  • Supports: arm64-apple-darwin , x86_64-apple-darwin

HS3003991 and others added 30 commits May 30, 2024 11:20
Everything theoretically, can't debug by myself!
…added

macos -> keyhandle.rs: added missing crate imports | datatype fixes

macos -> mod.rs  added TpmProvider struct

macos -> provider.rs: added missing imports | added SecurityModuleError::CreateKeyError and LoadKeyError | Datatype fixes

macos -> main -> src -> lib.rs: only bindings available.
- Implement Logger struct with LogConfig trait to configure logging.
- Set up daily rolling file appender for logs.
- Add #[instrument] macro to TpmProvider::new method for automatic tracing.
- Ensure logs are written to ./logs/secureenclave_output.log with TRACE level.
- Add detailed comments and documentation for clarity.
module.provider.rs => Changed loadkey from ProviderConfig to Any

rename TPMProvider => SecureEnvlaveProvider

key_handle.rs, provider.rs and SecureEnclaveManager.swift  => implemented Algorithms for Signing and Encryption

lib.rs implemented loadKey, signdata, verifdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants