Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I know this is somewhat counterintuitive, but: Does anyone know of any place where I might get intermediate values from PGP when it decrypts the secret values of the Secret Key packets and shows explicitly any special parsing needed to be done on the bytes?

Im looking for something like:

Given some example private key block and its password:

  1. the encrypted secret value is _
  2. the password is transformed into __ using the string to key algorithm
  3. the internal values in the CFB decryption using key and encrypted data are __ , _, and ___

etc.

I have read through RFC 4880, but since there are no examples of actual encryptions/decryptions in the RFC, I cannot be sure if my code is correct. I have looked through some of gpg, but its code is filled with so many gmd_s and other variables that all look the same and I get extremely confused, adding to the problem of me not always knowing where to look.

share|improve this question
add comment

1 Answer

Have you tried using the test vectors in the GnuPG \tests\openpgp folder? The GnuPG source can be downloaded from here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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