feat: secure enclave

This commit is contained in:
2023-12-09 10:45:23 +08:00
parent 215b75d6da
commit fa1cd80fc8
6 changed files with 151 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ repository = "https://git.hatter.ink/hatter/tiny-encrypt-rs"
default = ["decrypt", "macos", "secure-enclave"]
decrypt = ["openpgp-card", "openpgp-card-pcsc", "yubikey"]
macos = ["security-framework"]
secure-enclave = ["macos"]
secure-enclave = ["macos", "swift-rs"]
[dependencies]
aes-gcm-stream = "0.2"
@@ -43,6 +43,10 @@ x25519-dalek = { version = "2.0", features = ["static_secrets", "getrandom"] }
x509-parser = "0.15"
yubikey = { version = "0.8", features = ["untested"], optional = true }
zeroize = "1.7"
swift-rs = { path = "swift-rs", optional = true }
[build-dependencies]
swift-rs = { path = "swift-rs", features = ["build"], optional = true }
[patch.crates-io]
rust-crypto = { git = "https://github.com/jht5945/rust-crypto.git" }