CAPublicKeySecurityProtocol
internal enum CAPublicKeySecurityProtocol : UInt8, SecurityProtocol
CAPublicKeySecurityProtocol
represents different security protocols for Chip Authentication Public Keys
in electronic Machine Readable Travel Documents (eMRTD).
-
Security Protocol for Chip Authentication Public Keys using DH (Diffie-Hellman).
Declaration
Swift
case ID_PK_DH = 0x01
-
Security Protocol for Chip Authentication Public Keys using ECDH (Elliptic Curve Diffie-Hellman).
Declaration
Swift
case ID_PK_ECDH = 0x02
-
The
ObjectIdentifier
(OID) associated with the security protocol.Declaration
Swift
internal var oid: ObjectIdentifier { get }
-
Provides a default
ChipAuthenticationSecurityProtocol
based on the currentCAPublicKeySecurityProtocol
.Tip: Use it if the decoded
ChipAuthenticationInfo
does not provide anyChipAuthenticationSecurityProtocol
to use.
Declaration
Swift
internal var defaultChipAuthenticationSecurityProtocol: ChipAuthenticationSecurityProtocol { get }
Return Value
The default Chip Authentication Security Protocol to use.