DBAKey class

Class defines Document Basic Access Keys as specified in section 9.7.2 of doc ICAO 9303 p11 which are used to establish secure messaging session via BAC protocol.

Inheritance

Constructors

DBAKey(String mrtdNumber, DateTime dateOfBirth, DateTime dateOfExpiry, {bool paceMode = false})
Constructs DBAKey using passport number mrtdNumber, passport owner's dateOfBirth and passport dateOfExpiry.
DBAKey.fromMRZ(MRZ mrz)
Constructs DBAKey from mrz.
factory

Properties

dateOfBirth DateTime
Returns passport owner's date of birth used for calculating key seed.
no setter
dateOfExpiry DateTime
Returns passport date of expiry used for calculating key seed.
no setter
encKey Uint8List
Returns encryption key Kenc to be used in BAC or PACE protocol.
no setter
hashCode int
The hash code for this object.
no setterinherited
keySeed Uint8List
Returns Kseed as specified in Appendix D.2 to the Part 11 of doc ICAO 9303 p11
no setter
macKey Uint8List
Returns MAC key Kmac to be used in BAC or PACE protocol.
no setter
mrtdNumber String
Returns passport number used for calculating key seed.
no setter
PACE_REF_KEY_TAG int
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seedLen int
getter/setter pair

Methods

Kpi(CipherAlgorithm cipherAlgorithm, KEY_LENGTH keyLength) Uint8List
Returns K-pi kpi to be used in PACE protocol.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Very sensitive data. Do not use in production!
override

Operators

operator ==(Object other) bool
The equality operator.
inherited