ChipAuthenticationHandler
internal final class ChipAuthenticationHandler
ChipAuthenticationHandler
is responsible for performing chip authentication
to verify the authenticity of the chip.
Chip Authentication prevents copying the SOD
and proves that it has been read from the authentic contactless IC
and that it has not been substituted.
The protocol provides implicit authentication of both the eMRTD chip itself and the stored data by performing Secure Messaging using the new session keys.
-
A computed property that indicates if Chip Authentication is supported based on the available public keys.
Declaration
Swift
internal var isChipAuthenticationSupported: Bool { get }
-
Initializes the ChipAuthenticationHandler with
TagReader
andDataGroup14
.Declaration
Swift
internal init(tagReader: TagReader, dg14: DataGroup14)
-
performCA()
AsynchronousTry perfoming the Chip Authentication Protocol to verify the authenticity of the chip and restart
NFCSecureSession
using the new session keys.Throws
An error if Chip Authentication failed or if it is not supported.Declaration
Swift
internal func performCA() async throws