Skip to content

Conversation

@saravahdatipour
Copy link

While trying to read passports with 256 bit key, I got this error:

I/flutter ( 4922): pace FINE: 2025-07-09 14:13:43.293789: Cipher algorithm: AES, Key length: 256 bits
.
.
.
I/flutter ( 7239): pace SEVERE: 2025-07-09 10:25:13.240112: PACE.decryptNonce; Failed: AESCipher.decrypt; AES128 key length must be 128 bits.
I/flutter ( 7239): pace SEVERE: 2025-07-09 10:25:13.240874: PACE(1); Failed: PACE.decryptNonce; Failed: AESCipher.decrypt; AES128 key length must be 128 bits.
I/flutter ( 7239): pace SEVERE: 2025-07-09 10:25:13.241833: PACE key establishment failed: PACE(1); Failed: PACE.decryptNonce; Failed: AESCipher.decrypt; AES128 key length must be 128 bits.
I/flutter ( 7239): mrtdeg.app SEVERE: 2025-07-09 10:25:13.243160: An exception was encountered while trying to read Passport: PACE key establishment failed: PACE(1); Failed: PACE.decryptNonce; Failed: AESCipher.decrypt; AES128 key length must be 128 bits.

I noticed the key length is fixed to 128.

Copy link
Member

@smlu smlu Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you include only fix for key length in this PR, and make separate PR for the rest?

@DibranMulder
Copy link

He guys thanks for reviewing this. I'm sorry I messed up @saravahdatipour's branch. I recreated this PR here: #47
Credits go to @saravahdatipour for figuring this out.

@saravahdatipour saravahdatipour deleted the fix/pace-aes-keysize branch October 22, 2025 14:12
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

Successfully merging this pull request may close these issues.

4 participants