LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
logicalaccess::EPassUtils Class Reference

#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)
 

Detailed Description

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.

Member Function Documentation

◆ compute_mrz_checksum()

uint8_t EPassUtils::compute_mrz_checksum ( const std::string &  in)
static

Compute a MRZ.

See documentation part 1 volume 1 $16.

◆ parse_dg1()

EPassDG1 EPassUtils::parse_dg1 ( const ByteVector raw)
static

Parse the Data Group 1.

◆ parse_dg1_date()

std::chrono::system_clock::time_point EPassUtils::parse_dg1_date ( const ByteVector in,
int  millenium_limit 
)
static

Create a timepoint object from an YYMMDD ascii array.

Parameters
millenium_limitrepresents highest value for a date to be considered 19XX instead of 20XX;

◆ parse_dg2()

EPassDG2 EPassUtils::parse_dg2 ( const ByteVector raw)
static

Parse the DG2 file content

◆ parse_dg2_entry()

EPassDG2::BioInfo EPassUtils::parse_dg2_entry ( ByteVector::const_iterator &  itr,
const ByteVector::const_iterator &  end 
)
static

◆ parse_dg2_entry_header()

void EPassUtils::parse_dg2_entry_header ( EPassDG2::BioInfo info,
ByteVector::const_iterator &  itr,
const ByteVector::const_iterator &  end 
)
static

◆ parse_ef_com()

EPassEFCOM EPassUtils::parse_ef_com ( const ByteVector raw)
static

Parse the EF.COM content and build an EPassEFCOM object with the proper content.

◆ seed_from_mrz()

ByteVector EPassUtils::seed_from_mrz ( const std::string &  mrz)
static

Extract Kseed from MRZ.


The documentation for this class was generated from the following files: