{"action":"opened","issue":{"url":"https://api.github.com/repos/mediachain/L-SPACE/issues/27","repository_url":"https://api.github.com/repos/mediachain/L-SPACE","labels_url":"https://api.github.com/repos/mediachain/L-SPACE/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mediachain/L-SPACE/issues/27/comments","events_url":"https://api.github.com/repos/mediachain/L-SPACE/issues/27/events","html_url":"https://github.com/mediachain/L-SPACE/issues/27","id":140309918,"number":27,"title":"Modular signing hash and crypto algorithms","user":{"login":"yusefnapora","id":678715,"avatar_url":"https://avatars.githubusercontent.com/u/678715?v=3","gravatar_id":"","url":"https://api.github.com/users/yusefnapora","html_url":"https://github.com/yusefnapora","followers_url":"https://api.github.com/users/yusefnapora/followers","following_url":"https://api.github.com/users/yusefnapora/following{/other_user}","gists_url":"https://api.github.com/users/yusefnapora/gists{/gist_id}","starred_url":"https://api.github.com/users/yusefnapora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusefnapora/subscriptions","organizations_url":"https://api.github.com/users/yusefnapora/orgs","repos_url":"https://api.github.com/users/yusefnapora/repos","events_url":"https://api.github.com/users/yusefnapora/events{/privacy}","received_events_url":"https://api.github.com/users/yusefnapora/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T22:39:38Z","updated_at":"2016-03-11T22:39:38Z","closed_at":null,"body":"The current WIP signing implementation uses [the pgp wrapper used by the sbt-pgp plugin](https://github.com/sbt/sbt-pgp/tree/master/gpg-library/src), which has some unfortunate limits:\r\n\r\n- doesn't let you specify the digest algorithm; hardcoded to SHA-1\r\n- only has RSA, DSA, and ElGamal crypto algorithms to choose from\r\n- doesn't understand X.509 / openssl certificates, so keys need to be stored in PGP \"keyrings\"\r\n\r\nAnd fundamentally PGP is a message-oriented protocol that isn't a perfect fit for our domain.  But it was quick to get up and running with thanks to the wrapper.\r\n\r\nI'd like to implement our own wrapper around [bouncy castle](https://www.bouncycastle.org/) or possibly the native Java crypto API that is similar to the pgp-wrapper but more modular.  Or, if that seems to daunting, fork the PGP lib to expose more internals and allow different algorithms."}}