Files
Qiu Yuzhou 346af7fdae refactor(activation): collapse leaf validate-derive into one preparation
Each activation leaf was validated and then derived, resolving keychain
secrets and plugin facts twice and folding derivation failures back into
skips. Prepare once and hand the resolved facts to document assembly so
the catalog tree and activation share one judgment set without a dead
fold-back path.
2026-10-17 15:10:34 +08:00

20 lines
545 B
Swift

import Foundation
/// 加密方式能力目录(与当前随 app 打包的 sslocal 版本保持一致)。
/// 目录值是本地可验证的能力事实,不代表远端服务器一定可达。
enum EncryptionMethodCatalog {
static let supported: Set<String> = [
"aes-128-gcm",
"aes-256-gcm",
"chacha20-ietf-poly1305",
"2022-blake3-aes-128-gcm",
"2022-blake3-aes-256-gcm",
"2022-blake3-chacha20-poly1305",
"none",
]
static func isSupported(_ method: String) -> Bool {
supported.contains(method)
}
}