SymmetricKey
extension SymmetricKey: StorageData
-
Create a
SymmetricKey.Throws
CipherErrorerrors.Declaration
Swift
public init(bytes: some StorageData) throwsParameters
bytesStorageDataofSymmetricKey. -
Generate a
SymmetricKeyand store it on the keychain.Declaration
Swift
public static func generate(key: String = "SecurePropertyStorage.SymmetricKey", accessible: CFString = kSecAttrAccessibleWhenUnlocked, accessGroup: String? = nil, synchronizable: Bool = false, secClass: CFString = kSecClassGenericPassword) -> SymmetricKey
View on GitHub
Install in Dash