Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ___


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

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

Your Answer


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.