{"action":"created","comment":{"url":"https://api.github.com/repos/splone/splonebox-core/pulls/comments/56492388","id":56492388,"diff_hunk":"@@ -0,0 +1,275 @@\n+#include <stdint.h>\n+#include \"sb-common.h\"\n+#include \"rpc/sb-rpc.h\"\n+#include \"tweetnacl.h\"\n+\n+/* server security */\n+unsigned char serverlongtermsk[32];\n+unsigned char servershorttermpk[32];\n+unsigned char servershorttermsk[32];\n+\n+/* client security */\n+unsigned char clientshorttermpk[32];\n+\n+/* shared secrets */\n+unsigned char clientshortserverlong[32];\n+\n+int crypto_init(void)\n+{\n+  if (filesystem_load(\".keys/server-long-term\", serverlongtermsk,\n+      sizeof serverlongtermsk) == -1) {","path":"src/rpc/connection/crypto.c","position":20,"original_position":20,"commit_id":"ec9b93fd34b2d674e85fd3d57a2c2e8c0a59b681","original_commit_id":"3be4b55243a3f8b019e29853669ec457a936959f","user":{"login":"stze","id":640612,"avatar_url":"https://avatars.githubusercontent.com/u/640612?v=3","gravatar_id":"","url":"https://api.github.com/users/stze","html_url":"https://github.com/stze","followers_url":"https://api.github.com/users/stze/followers","following_url":"https://api.github.com/users/stze/following{/other_user}","gists_url":"https://api.github.com/users/stze/gists{/gist_id}","starred_url":"https://api.github.com/users/stze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stze/subscriptions","organizations_url":"https://api.github.com/users/stze/orgs","repos_url":"https://api.github.com/users/stze/repos","events_url":"https://api.github.com/users/stze/events{/privacy}","received_events_url":"https://api.github.com/users/stze/received_events","type":"User","site_admin":false},"body":"that doesn't matter, but feel free to change and add an entry to style guide","created_at":"2016-03-17T11:56:13Z","updated_at":"2016-03-17T11:56:13Z","html_url":"https://github.com/splone/splonebox-core/pull/29#discussion_r56492388","pull_request_url":"https://api.github.com/repos/splone/splonebox-core/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/splone/splonebox-core/pulls/comments/56492388"},"html":{"href":"https://github.com/splone/splonebox-core/pull/29#discussion_r56492388"},"pull_request":{"href":"https://api.github.com/repos/splone/splonebox-core/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/splone/splonebox-core/pulls/29","id":61714662,"html_url":"https://github.com/splone/splonebox-core/pull/29","diff_url":"https://github.com/splone/splonebox-core/pull/29.diff","patch_url":"https://github.com/splone/splonebox-core/pull/29.patch","issue_url":"https://api.github.com/repos/splone/splonebox-core/issues/29","number":29,"state":"open","locked":false,"title":"crypto stack implementation","user":{"login":"stze","id":640612,"avatar_url":"https://avatars.githubusercontent.com/u/640612?v=3","gravatar_id":"","url":"https://api.github.com/users/stze","html_url":"https://github.com/stze","followers_url":"https://api.github.com/users/stze/followers","following_url":"https://api.github.com/users/stze/following{/other_user}","gists_url":"https://api.github.com/users/stze/gists{/gist_id}","starred_url":"https://api.github.com/users/stze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stze/subscriptions","organizations_url":"https://api.github.com/users/stze/orgs","repos_url":"https://api.github.com/users/stze/repos","events_url":"https://api.github.com/users/stze/events{/privacy}","received_events_url":"https://api.github.com/users/stze/received_events","type":"User","site_admin":false},"body":"This PR introduces a crypto stack implementation based on tweetnacl library.","created_at":"2016-03-04T13:56:54Z","updated_at":"2016-03-17T11:56:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f92be64c388fdec3083612c56835cb95748376c","assignee":{"login":"mkind","id":640747,"avatar_url":"https://avatars.githubusercontent.com/u/640747?v=3","gravatar_id":"","url":"https://api.github.com/users/mkind","html_url":"https://github.com/mkind","followers_url":"https://api.github.com/users/mkind/followers","following_url":"https://api.github.com/users/mkind/following{/other_user}","gists_url":"https://api.github.com/users/mkind/gists{/gist_id}","starred_url":"https://api.github.com/users/mkind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkind/subscriptions","organizations_url":"https://api.github.com/users/mkind/orgs","repos_url":"https://api.github.com/users/mkind/repos","events_url":"https://api.github.com/users/mkind/events{/privacy}","received_events_url":"https://api.github.com/users/mkind/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/splone/splonebox-core/pulls/29/commits","review_comments_url":"https://api.github.com/repos/splone/splonebox-core/pulls/29/comments","review_comment_url":"https://api.github.com/repos/splone/splonebox-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/splone/splonebox-core/issues/29/comments","statuses_url":"https://api.github.com/repos/splone/splonebox-core/statuses/ec9b93fd34b2d674e85fd3d57a2c2e8c0a59b681","head":{"label":"splone:2016-03-stze-crypto-stack-implementation","ref":"2016-03-stze-crypto-stack-implementation","sha":"ec9b93fd34b2d674e85fd3d57a2c2e8c0a59b681","user":{"login":"splone","id":10976442,"avatar_url":"https://avatars.githubusercontent.com/u/10976442?v=3","gravatar_id":"","url":"https://api.github.com/users/splone","html_url":"https://github.com/splone","followers_url":"https://api.github.com/users/splone/followers","following_url":"https://api.github.com/users/splone/following{/other_user}","gists_url":"https://api.github.com/users/splone/gists{/gist_id}","starred_url":"https://api.github.com/users/splone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splone/subscriptions","organizations_url":"https://api.github.com/users/splone/orgs","repos_url":"https://api.github.com/users/splone/repos","events_url":"https://api.github.com/users/splone/events{/privacy}","received_events_url":"https://api.github.com/users/splone/received_events","type":"Organization","site_admin":false},"repo":{"id":44248202,"name":"splonebox-core","full_name":"splone/splonebox-core","owner":{"login":"splone","id":10976442,"avatar_url":"https://avatars.githubusercontent.com/u/10976442?v=3","gravatar_id":"","url":"https://api.github.com/users/splone","html_url":"https://github.com/splone","followers_url":"https://api.github.com/users/splone/followers","following_url":"https://api.github.com/users/splone/following{/other_user}","gists_url":"https://api.github.com/users/splone/gists{/gist_id}","starred_url":"https://api.github.com/users/splone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splone/subscriptions","organizations_url":"https://api.github.com/users/splone/orgs","repos_url":"https://api.github.com/users/splone/repos","events_url":"https://api.github.com/users/splone/events{/privacy}","received_events_url":"https://api.github.com/users/splone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/splone/splonebox-core","description":"splonebox - open source network assessment tool with focus on modularity","fork":false,"url":"https://api.github.com/repos/splone/splonebox-core","forks_url":"https://api.github.com/repos/splone/splonebox-core/forks","keys_url":"https://api.github.com/repos/splone/splonebox-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/splone/splonebox-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/splone/splonebox-core/teams","hooks_url":"https://api.github.com/repos/splone/splonebox-core/hooks","issue_events_url":"https://api.github.com/repos/splone/splonebox-core/issues/events{/number}","events_url":"https://api.github.com/repos/splone/splonebox-core/events","assignees_url":"https://api.github.com/repos/splone/splonebox-core/assignees{/user}","branches_url":"https://api.github.com/repos/splone/splonebox-core/branches{/branch}","tags_url":"https://api.github.com/repos/splone/splonebox-core/tags","blobs_url":"https://api.github.com/repos/splone/splonebox-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/splone/splonebox-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/splone/splonebox-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/splone/splonebox-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/splone/splonebox-core/statuses/{sha}","languages_url":"https://api.github.com/repos/splone/splonebox-core/languages","stargazers_url":"https://api.github.com/repos/splone/splonebox-core/stargazers","contributors_url":"https://api.github.com/repos/splone/splonebox-core/contributors","subscribers_url":"https://api.github.com/repos/splone/splonebox-core/subscribers","subscription_url":"https://api.github.com/repos/splone/splonebox-core/subscription","commits_url":"https://api.github.com/repos/splone/splonebox-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/splone/splonebox-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/splone/splonebox-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/splone/splonebox-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/splone/splonebox-core/contents/{+path}","compare_url":"https://api.github.com/repos/splone/splonebox-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/splone/splonebox-core/merges","archive_url":"https://api.github.com/repos/splone/splonebox-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/splone/splonebox-core/downloads","issues_url":"https://api.github.com/repos/splone/splonebox-core/issues{/number}","pulls_url":"https://api.github.com/repos/splone/splonebox-core/pulls{/number}","milestones_url":"https://api.github.com/repos/splone/splonebox-core/milestones{/number}","notifications_url":"https://api.github.com/repos/splone/splonebox-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/splone/splonebox-core/labels{/name}","releases_url":"https://api.github.com/repos/splone/splonebox-core/releases{/id}","deployments_url":"https://api.github.com/repos/splone/splonebox-core/deployments","created_at":"2015-10-14T13:09:23Z","updated_at":"2016-03-15T06:58:57Z","pushed_at":"2016-03-14T16:19:39Z","git_url":"git://github.com/splone/splonebox-core.git","ssh_url":"git@github.com:splone/splonebox-core.git","clone_url":"https://github.com/splone/splonebox-core.git","svn_url":"https://github.com/splone/splonebox-core","homepage":"http://splonebox.io","size":387,"stargazers_count":4,"watchers_count":4,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":4,"default_branch":"master"}},"base":{"label":"splone:master","ref":"master","sha":"24d97d0d41df840d0de7b33a1bb6bb27a6591032","user":{"login":"splone","id":10976442,"avatar_url":"https://avatars.githubusercontent.com/u/10976442?v=3","gravatar_id":"","url":"https://api.github.com/users/splone","html_url":"https://github.com/splone","followers_url":"https://api.github.com/users/splone/followers","following_url":"https://api.github.com/users/splone/following{/other_user}","gists_url":"https://api.github.com/users/splone/gists{/gist_id}","starred_url":"https://api.github.com/users/splone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splone/subscriptions","organizations_url":"https://api.github.com/users/splone/orgs","repos_url":"https://api.github.com/users/splone/repos","events_url":"https://api.github.com/users/splone/events{/privacy}","received_events_url":"https://api.github.com/users/splone/received_events","type":"Organization","site_admin":false},"repo":{"id":44248202,"name":"splonebox-core","full_name":"splone/splonebox-core","owner":{"login":"splone","id":10976442,"avatar_url":"https://avatars.githubusercontent.com/u/10976442?v=3","gravatar_id":"","url":"https://api.github.com/users/splone","html_url":"https://github.com/splone","followers_url":"https://api.github.com/users/splone/followers","following_url":"https://api.github.com/users/splone/following{/other_user}","gists_url":"https://api.github.com/users/splone/gists{/gist_id}","starred_url":"https://api.github.com/users/splone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splone/subscriptions","organizations_url":"https://api.github.com/users/splone/orgs","repos_url":"https://api.github.com/users/splone/repos","events_url":"https://api.github.com/users/splone/events{/privacy}","received_events_url":"https://api.github.com/users/splone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/splone/splonebox-core","description":"splonebox - open source network assessment tool with focus on modularity","fork":false,"url":"https://api.github.com/repos/splone/splonebox-core","forks_url":"https://api.github.com/repos/splone/splonebox-core/forks","keys_url":"https://api.github.com/repos/splone/splonebox-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/splone/splonebox-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/splone/splonebox-core/teams","hooks_url":"https://api.github.com/repos/splone/splonebox-core/hooks","issue_events_url":"https://api.github.com/repos/splone/splonebox-core/issues/events{/number}","events_url":"https://api.github.com/repos/splone/splonebox-core/events","assignees_url":"https://api.github.com/repos/splone/splonebox-core/assignees{/user}","branches_url":"https://api.github.com/repos/splone/splonebox-core/branches{/branch}","tags_url":"https://api.github.com/repos/splone/splonebox-core/tags","blobs_url":"https://api.github.com/repos/splone/splonebox-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/splone/splonebox-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/splone/splonebox-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/splone/splonebox-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/splone/splonebox-core/statuses/{sha}","languages_url":"https://api.github.com/repos/splone/splonebox-core/languages","stargazers_url":"https://api.github.com/repos/splone/splonebox-core/stargazers","contributors_url":"https://api.github.com/repos/splone/splonebox-core/contributors","subscribers_url":"https://api.github.com/repos/splone/splonebox-core/subscribers","subscription_url":"https://api.github.com/repos/splone/splonebox-core/subscription","commits_url":"https://api.github.com/repos/splone/splonebox-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/splone/splonebox-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/splone/splonebox-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/splone/splonebox-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/splone/splonebox-core/contents/{+path}","compare_url":"https://api.github.com/repos/splone/splonebox-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/splone/splonebox-core/merges","archive_url":"https://api.github.com/repos/splone/splonebox-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/splone/splonebox-core/downloads","issues_url":"https://api.github.com/repos/splone/splonebox-core/issues{/number}","pulls_url":"https://api.github.com/repos/splone/splonebox-core/pulls{/number}","milestones_url":"https://api.github.com/repos/splone/splonebox-core/milestones{/number}","notifications_url":"https://api.github.com/repos/splone/splonebox-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/splone/splonebox-core/labels{/name}","releases_url":"https://api.github.com/repos/splone/splonebox-core/releases{/id}","deployments_url":"https://api.github.com/repos/splone/splonebox-core/deployments","created_at":"2015-10-14T13:09:23Z","updated_at":"2016-03-15T06:58:57Z","pushed_at":"2016-03-14T16:19:39Z","git_url":"git://github.com/splone/splonebox-core.git","ssh_url":"git@github.com:splone/splonebox-core.git","clone_url":"https://github.com/splone/splonebox-core.git","svn_url":"https://github.com/splone/splonebox-core","homepage":"http://splonebox.io","size":387,"stargazers_count":4,"watchers_count":4,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/splone/splonebox-core/pulls/29"},"html":{"href":"https://github.com/splone/splonebox-core/pull/29"},"issue":{"href":"https://api.github.com/repos/splone/splonebox-core/issues/29"},"comments":{"href":"https://api.github.com/repos/splone/splonebox-core/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/splone/splonebox-core/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/splone/splonebox-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/splone/splonebox-core/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/splone/splonebox-core/statuses/ec9b93fd34b2d674e85fd3d57a2c2e8c0a59b681"}}}}