trusteddomainproject / OpenARC

Open source ARC implementation
BSD 2-Clause "Simplified" License
135 stars 45 forks source link

New option to select signing and/or verifying #58

Closed juh closed 7 years ago

juh commented 7 years ago

Copied the Mode option from OpenDKIM. Cheap implementation that works by just only adding the relevant headers if s or v is specified. All calculations of signatures are still done. This pull request is not really meant to be included into the master branch but may help others to try out different operation modes in real life scenarios.

mskucherawy commented 7 years ago

As I read this, the code will do full signing and verifying, and then use one half or the other (or both) depending on which mode bits or set. It would be ideal to shut off the parts of the library that are not needed when only one mode is selected.

@petergoldstein I believe has taken on that change.