LocalData/Sources/LocalData/Configuration/EncryptionConfiguration.swift
Matt Bruce 9cbc561101 Update Configuration, Models, Services + docs
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(-)
2026-01-18 14:53:27 -06:00

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()
}