ZeroPass / dmrtd

Dart library for reading Biometric Passport
Other
67 stars 34 forks source link

Failed to parse AAPublicKey from EF.DG15: Exception: Invalid Algorithm OID object tag=30, expected tag=06 #35

Open hnvn opened 2 months ago

hnvn commented 2 months ago

A typo in following code line causes this error: https://github.com/ZeroPass/dmrtd/blob/8ced7600fb9fd84f0824bfaddc2fcc7bff655a7f/lib/src/crypto/aa_pubkey.dart#L52

The correct codes should be:

 if (tvAlgOID.tag.value != 0x06)
smlu commented 2 months ago

Thank you for spotting this error! Is there any chance you could submit PR?