I really liked the answer in this post:

Defeat rsa hash verification

However I do not really understand this part:

"taking the signature s raised to the power of 3 modulus n we wind up with the following value"

I see where the strings come from but could someone point me to a box filling operation or perhaps some OpenSSL code so that I can generate the resultant string shown.


I have a VAG MIB2 with QNX, which uses the metachecksum and signatures. So I feel that if I can emulate the process described, I'd have a go and see where it leads.


The hint is right there in the quoted text:

taking the signature s raised to the power of 3 modulus n we wind up with the following value

This is the classical RSA decryption operation.

In our case:


Calculation can be done in any calculator supporting long numbers. I usually use Python, since it has the pow function which accepts the modulo.

>>> x = pow(s, e, n)
>>> hex(x)

  • Much appreciated. The question now is whether the original post had the MIB2 public key. Will play about with it. But anyone feel free to supply the public MIB2 key if you know it. – Tell Aug 8 '17 at 17:12
  • OK they are indeed the MIB2 "public" keys in the original post since the process tallies with VAG POI metainfo2.txt files generated for the unit. Not sure what unit the original poster had except it was QNX based but sort of assumed that the keys would be the same. Supplementary question on "Just modify the parts of the file you need to modify, recalculate the SHA1 and update MetafileChecksum.". Is there a process that I can do to re signature the file after I have changed it with the same "public keys". Thanks. – Tell Aug 12 '17 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.