Summary: - Sources: Configuration, Models, Services - Docs: README - Added symbols: struct FileStorageConfiguration, struct StorageConfiguration, func updateConfiguration, func updateFileStorageConfiguration, func updateStorageConfiguration, func resolveService (+1 more) Stats: - 9 files changed, 144 insertions(+), 24 deletions(-)
24 lines
743 B
Swift
24 lines
743 B
Swift
import Foundation
|
|
|
|
/// Configuration for the EncryptionHelper.
|
|
public struct EncryptionConfiguration: Sendable {
|
|
public let masterKeyService: String
|
|
public let masterKeyAccount: String
|
|
public let masterKeyLength: Int
|
|
public let defaultHKDFInfo: String
|
|
|
|
public init(
|
|
masterKeyService: String = "LocalData",
|
|
masterKeyAccount: String = "MasterKey",
|
|
masterKeyLength: Int = 32,
|
|
defaultHKDFInfo: String = "LocalData.Encryption"
|
|
) {
|
|
self.masterKeyService = masterKeyService
|
|
self.masterKeyAccount = masterKeyAccount
|
|
self.masterKeyLength = masterKeyLength
|
|
self.defaultHKDFInfo = defaultHKDFInfo
|
|
}
|
|
|
|
public static let `default` = EncryptionConfiguration()
|
|
}
|