canDecrypt
TypeScriptcanDecrypt(algorithm: _Security_SecKeyAlgorithm): booleanSwift declarationfunc canDecrypt(using algorithm: SecKeyAlgorithm) -> Boolclass · iOS 16.0+ · SDK 27.1
class LAPrivateKeycanDecrypt(algorithm: _Security_SecKeyAlgorithm): booleanSwift declarationfunc canDecrypt(using algorithm: SecKeyAlgorithm) -> BoolcanExchangeKeys(algorithm: _Security_SecKeyAlgorithm): booleanSwift declarationfunc canExchangeKeys(using algorithm: SecKeyAlgorithm) -> BoolcanSign(algorithm: _Security_SecKeyAlgorithm): booleanSwift declarationfunc canSign(using algorithm: SecKeyAlgorithm) -> Booldecrypt(data: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc decrypt(_ data: Data, algorithm: SecKeyAlgorithm) async throws -> DataexchangeKeys(publicKey: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, parameters: NativeMap<unknown, unknown>, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc exchangeKeys(publicKey: Data, algorithm: SecKeyAlgorithm, parameters: [AnyHashable : Any]) async throws -> Datasign(data: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc sign(_ data: Data, algorithm: SecKeyAlgorithm) async throws -> Dataget publicKey(): LAPublicKeySwift declarationvar publicKey: LAPublicKey { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
LAPrivateKey.init()
inherited init: clang: 'init' is unavailable