-
Notifications
You must be signed in to change notification settings - Fork 28
Implement MDC-using encryption #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Awesome, thanks. Much appreciated. Will test it tomorrow and merge it then. @jasonhinkle please check if none of the unittests are broken. |
|
It does not work here,
Encrypted |
In response to singpolyma/openpgp-php#17 In an attempt to close #18 Code based on https://github.com/singpolyma/openpgp-php
|
@DanielRuf Ah yes, there was a bug in the padding handling because of the resync change. Fixed now. |
|
👍 great, works here now =) @jasonhinkle please test on your side. We have to add this also to the dev branch. Should we increment the version to 1.6.0? |
|
Hey @DanielRuf , I don't have a client to test this with - is it possible to write a unit test to verify that it works? |
Probably not yet until we have decryption implemented as we have to decrypt, then use the length from the MDC packet and use it to get the prefix and the SHA-1 hash. With this and the decrypted cleartext message we can check if it is correct (hash the cleartext and the prefix and check it with the hash from the decrypted message). This would be the right way. |
Implement MDC-using encryption
implemented MDC, see #20 thanks and credits go to @singpolyma
implemented MDC, see #20 thanks and credits go to @singpolyma
In response to singpolyma/openpgp-php#17
In an attempt to close #18
Code based on https://github.com/singpolyma/openpgp-php