Closed onlykey closed 7 years ago
While looking at the kbpgp code, I found this function: https://github.com/keybase/kbpgp/blob/master/lib/openpgp/processor.js#L368
Here is the IcedCoffeeScript version: https://github.com/keybase/kbpgp/blob/master/src/openpgp/processor.iced#L197
Maybe this helps.
The correct session key is now decrypted by OnlyKey
Now we need to do the magic to import this session key back to the function that needs it to decrypt the data -
This will likely result in errors as kbpgp is designed to have the private key, may need to load a test key so kbpgp thinks it has the private key and then just remove any errors like if the test key fingerprint does not match the message.