SymmetricKey
extension SymmetricKey: StorageData
-
Create a
SymmetricKey
.Throws
CipherError
errors.Declaration
Swift
public init<B>(bytes: B) throws where B : StorageData
Parameters
bytes
StorageData
ofSymmetricKey
. -
Generate a
SymmetricKey
and store it on the keychain.Declaration
Swift
public static func generate(accessible: CFString = kSecAttrAccessibleWhenUnlocked, accessGroup: String? = nil, synchronizable: Bool = false, secClass: CFString = kSecClassGenericPassword) -> SymmetricKey