LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#include <utils.hpp>
Static Public Member Functions | |
static uint8_t | compute_mrz_checksum (const std::string &in) |
static ByteVector | seed_from_mrz (const std::string &mrz) |
static EPassEFCOM | parse_ef_com (const ByteVector &raw) |
static EPassDG2 | parse_dg2 (const ByteVector &raw) |
static EPassDG2::BioInfo | parse_dg2_entry (ByteVector::const_iterator &itr, const ByteVector::const_iterator &end) |
static void | parse_dg2_entry_header (EPassDG2::BioInfo &info, ByteVector::const_iterator &itr, const ByteVector::const_iterator &end) |
static EPassDG1 | parse_dg1 (const ByteVector &raw) |
static std::chrono::system_clock::time_point | parse_dg1_date (const ByteVector &in, int millenium_limit) |
An helper class that provide various utilities regarding e-passport.
MRZ: Machine Readable Zone. Utility to compute checksum, extract information from ROC-B string, etc.
|
static |
Compute a MRZ.
See documentation part 1 volume 1 $16.
|
static |
Parse the Data Group 1.
|
static |
Create a timepoint object from an YYMMDD ascii array.
millenium_limit | represents highest value for a date to be considered 19XX instead of 20XX; |
|
static |
Parse the DG2 file content
|
static |
|
static |
|
static |
Parse the EF.COM content and build an EPassEFCOM object with the proper content.
|
static |
Extract Kseed from MRZ.