SymmetricKey
extension SymmetricKey: StorageData
-
Create a
SymmetricKey
.Throws
CipherError
errors.Declaration
Swift
public init(bytes: some StorageData) throws
Parameters
bytes
StorageData
ofSymmetricKey
. -
Generate a
SymmetricKey
and 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