-
Notifications
You must be signed in to change notification settings - Fork 520
LocalAuthentication iOS xcode16.3 b1
Rolf Bjarne Kvinge edited this page Feb 24, 2025
·
1 revision
#LocalAuthentication.framework
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h 2024-11-10 10:13:13
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h 2025-02-07 22:51:01
@@ -190,7 +190,7 @@
/// @li LAErrorSystemCancel if some system event interrupted the evaluation (e.g. Home button pressed).
- (void)evaluatePolicy:(LAPolicy)policy
localizedReason:(NSString *)localizedReason
- reply:(void(^)(BOOL success, NSError * __nullable error))reply
+ reply:(void(NS_SWIFT_SENDABLE ^)(BOOL success, NSError * __nullable error))reply
NS_SWIFT_ASYNC_THROWS_ON_FALSE(0)
API_AVAILABLE(macos(10.10), ios(8.0), watchos(3.0)) API_UNAVAILABLE(tvos);
@@ -325,7 +325,7 @@
- (void)evaluateAccessControl:(SecAccessControlRef)accessControl
operation:(LAAccessControlOperation)operation
localizedReason:(NSString *)localizedReason
- reply:(void(^)(BOOL success, NSError * __nullable error))reply
+ reply:(void(NS_SWIFT_SENDABLE ^)(BOOL success, NSError * __nullable error))reply
NS_SWIFT_ASYNC_THROWS_ON_FALSE(0)
API_AVAILABLE(macos(10.11), ios(9.0), watchos(3.0)) API_UNAVAILABLE(tvos);
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h 2024-11-10 11:55:10
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h 2025-02-08 04:46:03
@@ -20,7 +20,7 @@
/// @param data The data to be signed, typically the digest of the actual data.
/// @param algorithm A @c SecKeyAlgorithm suitable for generating signatures with this key – e.g: @c kSecKeyAlgorithmECDSASignatureMessageX962SHA256
/// @param handler Completion handler with the signature of given data or an error on failure.
-- (void)signData:(NSData *)data secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(sign(_:algorithm:completion:));
+- (void)signData:(NSData *)data secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (NS_SWIFT_SENDABLE ^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(sign(_:algorithm:completion:));
/// @brief Checks if the the provided algorithm can be used for signing data
/// @param algorithm Cryptographic algorithm
@@ -32,7 +32,7 @@
/// typically be less or equal to the value returned by SecKeyGetBlockSize().
/// @param algorithm A @c SecKeyAlgorithm suitable for decrypting data with this key –e.g: @c kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM
/// @param handler Completion handler with plaintext or an error on failure.
-- (void)decryptData:(NSData *)data secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(decrypt(_:algorithm:completion:));
+- (void)decryptData:(NSData *)data secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (NS_SWIFT_SENDABLE ^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(decrypt(_:algorithm:completion:));
/// @brief Checks if the the provided algorithm can be used for decryption
/// @param algorithm Cryptographic algorithm
@@ -44,7 +44,7 @@
/// @param algorithm A @c SecKeyAlgorithm suitable for performing a key exchange with this key –e.g: @c kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256
/// @param parameters Dictionary with parameters, see @c SecKeyKeyExchangeParameter constants. Used algorithm determines the set of required and optional parameters to be used.
/// @param handler Completion handler with the result of the key exchange or an error on failure.
-- (void)exchangeKeysWithPublicKey:(NSData *)publicKey secKeyAlgorithm:(SecKeyAlgorithm)algorithm secKeyParameters:(NSDictionary *)parameters completion:(void (^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(exchangeKeys(publicKey:algorithm:parameters:completion:));
+- (void)exchangeKeysWithPublicKey:(NSData *)publicKey secKeyAlgorithm:(SecKeyAlgorithm)algorithm secKeyParameters:(NSDictionary *)parameters completion:(void (NS_SWIFT_SENDABLE ^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(exchangeKeys(publicKey:algorithm:parameters:completion:));
/// @brief Checks if the the provided algorithm can be used for performing key exchanges
/// @param algorithm Cryptographic algorithm
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h 2024-11-10 11:55:10
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h 2025-02-08 04:46:03
@@ -13,13 +13,13 @@
/// @brief Exports public key bytes.
/// @param handler Completion handler with the raw bytes of the public key or an error on failure
-- (void)exportBytesWithCompletion:(void (^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_ASYNC_NAME(getter:bytes());
+- (void)exportBytesWithCompletion:(void (NS_SWIFT_SENDABLE ^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_ASYNC_NAME(getter:bytes());
/// @brief Encrypts the given data
/// @param data The data to encrypt.
/// @param algorithm A @c SecKeyAlgorithm suitable for encrypting with this key –e.g: @c kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM .
/// @param handler Completion handler with the ciphertext or an error on failure.
-- (void)encryptData:(NSData *)data secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(encrypt(_:algorithm:completion:));
+- (void)encryptData:(NSData *)data secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (NS_SWIFT_SENDABLE ^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(encrypt(_:algorithm:completion:));
/// @brief Checks if the the provided algorithm can be used for encryption with the key.
/// @param algorithm Cryptographic algorithm
@@ -31,7 +31,7 @@
/// @param signature The signature of the given data.
/// @param algorithm One of @c SecKeyAlgorithm suitable for verifying signatures with this key –e.g: @c kSecKeyAlgorithmECDSASignatureMessageX962SHA256
/// @param handler Completion hadnler with the signature of given data or an error on failure.
-- (void)verifyData:(NSData *)signedData signature:(NSData *)signature secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (^)(NSError *_Nullable))handler
+- (void)verifyData:(NSData *)signedData signature:(NSData *)signature secKeyAlgorithm:(SecKeyAlgorithm)algorithm completion:(void (NS_SWIFT_SENDABLE ^)(NSError *_Nullable))handler
#pragma push_macro("verify")
#undef verify
NS_SWIFT_NAME(verify(_:signature:algorithm:completion:));
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h 2024-11-10 11:55:10
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h 2025-02-08 04:46:03
@@ -61,11 +61,11 @@
/// @brief Tries to authorize the right.
/// @param localizedReason Localized explanation for the authorization. Appears in the UI presented to the user.
/// @param handler Completion handler called after the authorization finishes. Returns an error when the authorization fails.
-- (void)authorizeWithLocalizedReason:(NSString *)localizedReason completion:(void (^)(NSError *_Nullable error))handler NS_SWIFT_NAME(authorize(localizedReason:completion:));
+- (void)authorizeWithLocalizedReason:(NSString *)localizedReason completion:(void (NS_SWIFT_SENDABLE ^)(NSError *_Nullable error))handler NS_SWIFT_NAME(authorize(localizedReason:completion:));
/// @brief Checks whether the client can eventually be granted the right.
/// @param handler Completion handler. Returns @c nil if the right can be authorized or an error otherwise.
-- (void)checkCanAuthorizeWithCompletion:(void (^)(NSError *_Nullable error))handler;
+- (void)checkCanAuthorizeWithCompletion:(void (NS_SWIFT_SENDABLE ^)(NSError *_Nullable error))handler;
/// @brief Invalidates a previously authorized right.
/// @param handler Completion handler called after the right is deauthorized.
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h 2024-11-10 11:55:10
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h 2025-02-08 04:46:03
@@ -18,34 +18,34 @@
/// @brief Fetches a right stored under the given identifier.
/// @param identifier Identifier associated with a previously stored right.
/// @param handler Completion handler with the fetched right or an error on failure.
-- (void)rightForIdentifier:(NSString *)identifier completion:(void (^)(LAPersistedRight *_Nullable, NSError *_Nullable))handler;
+- (void)rightForIdentifier:(NSString *)identifier completion:(void (NS_SWIFT_SENDABLE ^)(LAPersistedRight *_Nullable, NSError *_Nullable))handler;
/// @brief Persists a right for later usage.
/// @param right @c LARight instance to store.
/// @param identifier Identifier to be associated with the right. Useful for later retrieval.
/// @param handler Completion handler with the persisted right or an error on failure.
-- (void)saveRight:(LARight *)right identifier:(NSString *)identifier completion:(void (^)(LAPersistedRight *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(saveRight(_:identifier:completion:));
+- (void)saveRight:(LARight *)right identifier:(NSString *)identifier completion:(void (NS_SWIFT_SENDABLE ^)(LAPersistedRight *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(saveRight(_:identifier:completion:));
/// @brief Persists a right for later usage.
/// @param right @c LARight instance to store.
/// @param identifier Identifier to be associated with the right. Useful for later retrieval.
/// @param secret Secret data to be associated with the provided right.
/// @param handler Completion handler with the persisted right or an error on failure.
-- (void)saveRight:(LARight *)right identifier:(NSString *)identifier secret:(NSData *)secret completion:(void (^)(LAPersistedRight *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(saveRight(_:identifier:secret:completion:));
+- (void)saveRight:(LARight *)right identifier:(NSString *)identifier secret:(NSData *)secret completion:(void (NS_SWIFT_SENDABLE ^)(LAPersistedRight *_Nullable, NSError *_Nullable))handler NS_SWIFT_NAME(saveRight(_:identifier:secret:completion:));
/// @brief Removes a right from the persistent storage along with its associated resources.
/// @param right @c LAPersistedRight instance to remove.
/// @param handler Completion handler with an error on failure.
-- (void)removeRight:(LAPersistedRight *)right completion:(void (^)(NSError *_Nullable error))handler NS_SWIFT_NAME(removeRight(_:completion:));
+- (void)removeRight:(LAPersistedRight *)right completion:(void (NS_SWIFT_SENDABLE ^)(NSError *_Nullable error))handler NS_SWIFT_NAME(removeRight(_:completion:));
/// @brief Removes right with provided identifier from persistant storage.
/// @param identifier Identifier of @c LAPersistedRight instance to remove.
/// @param handler Completion handler with an error on failure.
-- (void)removeRightForIdentifier:(NSString *)identifier completion:(void (^)(NSError *_Nullable error))handler NS_SWIFT_NAME(removeRight(forIdentifier:completion:));
+- (void)removeRightForIdentifier:(NSString *)identifier completion:(void (NS_SWIFT_SENDABLE ^)(NSError *_Nullable error))handler NS_SWIFT_NAME(removeRight(forIdentifier:completion:));
/// @brief Removes all rights stored by the client
/// @param handler Completion handler with an error on failure.
-- (void)removeAllRightsWithCompletion:(void (^)(NSError *_Nullable error))handler;
+- (void)removeAllRightsWithCompletion:(void (NS_SWIFT_SENDABLE ^)(NSError *_Nullable error))handler;
/// @brief Clients should rely on the @c shared instance instead
+ (instancetype)new NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h
--- /Applications/Xcode_16.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h 2024-11-10 11:55:10
+++ /Applications/Xcode_16.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h 2025-02-08 04:46:03
@@ -12,7 +12,7 @@
/// @brief Fetch stored data if any
/// @param handler Completion handler invoked with a generic secret stored along with the right or an error if no secret is found or the fetch operation fails.
-- (void)loadDataWithCompletion:(void (^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_ASYNC_NAME(getter:rawData());
+- (void)loadDataWithCompletion:(void (NS_SWIFT_SENDABLE ^)(NSData *_Nullable, NSError *_Nullable))handler NS_SWIFT_ASYNC_NAME(getter:rawData());
/// @brief Clients cannot create @c LASecret instances directly. They typically obtain them from a @c LAPersistedRight instance.
+ (instancetype)new NS_UNAVAILABLE;