Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS implementation #16

Open
wants to merge 68 commits into
base: main
Choose a base branch
from
Open

MacOS implementation #16

wants to merge 68 commits into from

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
src/tpm/macos/key_handle.rs Outdated Show resolved Hide resolved
src/tpm/macos/key_handle.rs Outdated Show resolved Hide resolved
src/tpm/macos/key_handle.rs Outdated Show resolved Hide resolved
src/tpm/macos/main/build.rs Outdated Show resolved Hide resolved
src/tpm/macos/main/build.rs Outdated Show resolved Hide resolved
src/tpm/macos/main/build.rs Outdated Show resolved Hide resolved
src/tpm/macos/provider.rs Outdated Show resolved Hide resolved
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