italia / italia/cie-nis-python-sdk

Cosa verifica verifyChild0 e verifyChild1

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
37
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Salve,
Cosa viene verificato qui (vedere codice sotto) con "verifyChild0" e "verifyChild1" ?

CIEinterface.py :
```
def extractData(self):
"""
Extracts the personal data from a CIE after the EAC authentication
:return: The parsed data
"""

mainDGData = self.readDg(30)
mainDG = ASN1(mainDGData)

verifyChild0 = mainDG.root['children'][0]['verify']([0x30, 0x31, 0x30, 0x37])
verifyChild1 = mainDG.root['children'][1]['verify']([0x30, 0x34, 0x30, 0x30, 0x30, 0x30])

if not verifyChild0 or not verifyChild1:
raise Exception('extractData: Invalid DG 30')
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.