Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosa verifica verifyChild0 e verifyChild1 #14

Open
paoloros97 opened this issue Jan 4, 2023 · 0 comments
Open

Cosa verifica verifyChild0 e verifyChild1 #14

paoloros97 opened this issue Jan 4, 2023 · 0 comments

Comments

@paoloros97
Copy link

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')
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant