One Logo Pool Ball
LocalAuthentication · IOS API REFERENCE

LAPublicKey

class · iOS 16.0+ · SDK 27.1

class LAPublicKey

Members (5)

method · iOS 16.0+

canEncrypt

TypeScript
canEncrypt(algorithm: _Security_SecKeyAlgorithm): boolean
Swift declaration
func canEncrypt(using algorithm: SecKeyAlgorithm) -> Bool
method · iOS 16.0+

canVerify

TypeScript
canVerify(algorithm: _Security_SecKeyAlgorithm): boolean
Swift declaration
func canVerify(using algorithm: SecKeyAlgorithm) -> Bool
method · iOS 16.0+

encrypt

TypeScript
encrypt(data: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func encrypt(_ data: Data, algorithm: SecKeyAlgorithm) async throws -> Data
method · iOS 16.0+

exportBytes

TypeScript
exportBytes(handler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
var bytes: Data { get async throws }
method · iOS 16.0+

verify

TypeScript
verify(signedData: ArrayBuffer, signature: ArrayBuffer, algorithm: _Security_SecKeyAlgorithm, handler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func verify(_ signedData: Data, signature: Data, algorithm: SecKeyAlgorithm) async throws

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

LAPublicKey.init()

inherited init: clang: 'init' is unavailable

All LocalAuthentication types →