{"action":"closed","number":419,"pull_request":{"url":"https://api.github.com/repos/OpenSC/OpenSC/pulls/419","id":32352190,"html_url":"https://github.com/OpenSC/OpenSC/pull/419","diff_url":"https://github.com/OpenSC/OpenSC/pull/419.diff","patch_url":"https://github.com/OpenSC/OpenSC/pull/419.patch","issue_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/419","number":419,"state":"closed","locked":false,"title":"RSA: PKCS1 for signature, RAW for decryption","user":{"login":"frankmorgner","id":1266577,"avatar_url":"https://avatars.githubusercontent.com/u/1266577?v=3","gravatar_id":"","url":"https://api.github.com/users/frankmorgner","html_url":"https://github.com/frankmorgner","followers_url":"https://api.github.com/users/frankmorgner/followers","following_url":"https://api.github.com/users/frankmorgner/following{/other_user}","gists_url":"https://api.github.com/users/frankmorgner/gists{/gist_id}","starred_url":"https://api.github.com/users/frankmorgner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankmorgner/subscriptions","organizations_url":"https://api.github.com/users/frankmorgner/orgs","repos_url":"https://api.github.com/users/frankmorgner/repos","events_url":"https://api.github.com/users/frankmorgner/events{/privacy}","received_events_url":"https://api.github.com/users/frankmorgner/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nI am using a card that supports RSA PKCS#1 for signature only and RAW input for decryption only. currently the card's capabilities flag is used for both operations which is also what is exorted from the PKCS#11 module. This PR changes this behavior, but I am not sure if this breaks some other card or application.\r\n\r\nFrom the comments in the PKCS#11 module I can see that there are many deficits. What would be the correct(tm) way of implementing method (i.e. signature/decryption) dependant card capabilities? Is PKCS#1 even used for decryption (or RAW input for signature) in some application?\r\n\r\nThanks for comments.","created_at":"2015-03-31T18:39:36Z","updated_at":"2015-04-12T11:40:01Z","closed_at":"2015-04-12T11:40:01Z","merged_at":null,"merge_commit_sha":"55347f81cceba402d697963cd777dfd23b2d792c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenSC/OpenSC/pulls/419/commits","review_comments_url":"https://api.github.com/repos/OpenSC/OpenSC/pulls/419/comments","review_comment_url":"https://api.github.com/repos/OpenSC/OpenSC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/419/comments","statuses_url":"https://api.github.com/repos/OpenSC/OpenSC/statuses/8840246c4dc4b90c3d5e8595cb9ff0bee3ad679d","head":{"label":"frankmorgner:sign-decrypt","ref":"sign-decrypt","sha":"8840246c4dc4b90c3d5e8595cb9ff0bee3ad679d","user":{"login":"frankmorgner","id":1266577,"avatar_url":"https://avatars.githubusercontent.com/u/1266577?v=3","gravatar_id":"","url":"https://api.github.com/users/frankmorgner","html_url":"https://github.com/frankmorgner","followers_url":"https://api.github.com/users/frankmorgner/followers","following_url":"https://api.github.com/users/frankmorgner/following{/other_user}","gists_url":"https://api.github.com/users/frankmorgner/gists{/gist_id}","starred_url":"https://api.github.com/users/frankmorgner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankmorgner/subscriptions","organizations_url":"https://api.github.com/users/frankmorgner/orgs","repos_url":"https://api.github.com/users/frankmorgner/repos","events_url":"https://api.github.com/users/frankmorgner/events{/privacy}","received_events_url":"https://api.github.com/users/frankmorgner/received_events","type":"User","site_admin":false},"repo":{"id":3294055,"name":"OpenSC","full_name":"frankmorgner/OpenSC","owner":{"login":"frankmorgner","id":1266577,"avatar_url":"https://avatars.githubusercontent.com/u/1266577?v=3","gravatar_id":"","url":"https://api.github.com/users/frankmorgner","html_url":"https://github.com/frankmorgner","followers_url":"https://api.github.com/users/frankmorgner/followers","following_url":"https://api.github.com/users/frankmorgner/following{/other_user}","gists_url":"https://api.github.com/users/frankmorgner/gists{/gist_id}","starred_url":"https://api.github.com/users/frankmorgner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankmorgner/subscriptions","organizations_url":"https://api.github.com/users/frankmorgner/orgs","repos_url":"https://api.github.com/users/frankmorgner/repos","events_url":"https://api.github.com/users/frankmorgner/events{/privacy}","received_events_url":"https://api.github.com/users/frankmorgner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frankmorgner/OpenSC","description":"Open source smart card tools and middleware. PKCS#11/MiniDriver/Tokend","fork":true,"url":"https://api.github.com/repos/frankmorgner/OpenSC","forks_url":"https://api.github.com/repos/frankmorgner/OpenSC/forks","keys_url":"https://api.github.com/repos/frankmorgner/OpenSC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frankmorgner/OpenSC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frankmorgner/OpenSC/teams","hooks_url":"https://api.github.com/repos/frankmorgner/OpenSC/hooks","issue_events_url":"https://api.github.com/repos/frankmorgner/OpenSC/issues/events{/number}","events_url":"https://api.github.com/repos/frankmorgner/OpenSC/events","assignees_url":"https://api.github.com/repos/frankmorgner/OpenSC/assignees{/user}","branches_url":"https://api.github.com/repos/frankmorgner/OpenSC/branches{/branch}","tags_url":"https://api.github.com/repos/frankmorgner/OpenSC/tags","blobs_url":"https://api.github.com/repos/frankmorgner/OpenSC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frankmorgner/OpenSC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frankmorgner/OpenSC/git/refs{/sha}","trees_url":"https://api.github.com/repos/frankmorgner/OpenSC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frankmorgner/OpenSC/statuses/{sha}","languages_url":"https://api.github.com/repos/frankmorgner/OpenSC/languages","stargazers_url":"https://api.github.com/repos/frankmorgner/OpenSC/stargazers","contributors_url":"https://api.github.com/repos/frankmorgner/OpenSC/contributors","subscribers_url":"https://api.github.com/repos/frankmorgner/OpenSC/subscribers","subscription_url":"https://api.github.com/repos/frankmorgner/OpenSC/subscription","commits_url":"https://api.github.com/repos/frankmorgner/OpenSC/commits{/sha}","git_commits_url":"https://api.github.com/repos/frankmorgner/OpenSC/git/commits{/sha}","comments_url":"https://api.github.com/repos/frankmorgner/OpenSC/comments{/number}","issue_comment_url":"https://api.github.com/repos/frankmorgner/OpenSC/issues/comments{/number}","contents_url":"https://api.github.com/repos/frankmorgner/OpenSC/contents/{+path}","compare_url":"https://api.github.com/repos/frankmorgner/OpenSC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frankmorgner/OpenSC/merges","archive_url":"https://api.github.com/repos/frankmorgner/OpenSC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frankmorgner/OpenSC/downloads","issues_url":"https://api.github.com/repos/frankmorgner/OpenSC/issues{/number}","pulls_url":"https://api.github.com/repos/frankmorgner/OpenSC/pulls{/number}","milestones_url":"https://api.github.com/repos/frankmorgner/OpenSC/milestones{/number}","notifications_url":"https://api.github.com/repos/frankmorgner/OpenSC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frankmorgner/OpenSC/labels{/name}","releases_url":"https://api.github.com/repos/frankmorgner/OpenSC/releases{/id}","created_at":"2012-01-28T23:08:53Z","updated_at":"2015-03-31T19:11:32Z","pushed_at":"2015-04-11T20:21:55Z","git_url":"git://github.com/frankmorgner/OpenSC.git","ssh_url":"git@github.com:frankmorgner/OpenSC.git","clone_url":"https://github.com/frankmorgner/OpenSC.git","svn_url":"https://github.com/frankmorgner/OpenSC","homepage":"https://www.opensc-project.org/","size":9675,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OpenSC:master","ref":"master","sha":"88ec461bc5b6041e0417df569de74875253f05d3","user":{"login":"OpenSC","id":895249,"avatar_url":"https://avatars.githubusercontent.com/u/895249?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSC","html_url":"https://github.com/OpenSC","followers_url":"https://api.github.com/users/OpenSC/followers","following_url":"https://api.github.com/users/OpenSC/following{/other_user}","gists_url":"https://api.github.com/users/OpenSC/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSC/subscriptions","organizations_url":"https://api.github.com/users/OpenSC/orgs","repos_url":"https://api.github.com/users/OpenSC/repos","events_url":"https://api.github.com/users/OpenSC/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSC/received_events","type":"Organization","site_admin":false},"repo":{"id":1999692,"name":"OpenSC","full_name":"OpenSC/OpenSC","owner":{"login":"OpenSC","id":895249,"avatar_url":"https://avatars.githubusercontent.com/u/895249?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSC","html_url":"https://github.com/OpenSC","followers_url":"https://api.github.com/users/OpenSC/followers","following_url":"https://api.github.com/users/OpenSC/following{/other_user}","gists_url":"https://api.github.com/users/OpenSC/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSC/subscriptions","organizations_url":"https://api.github.com/users/OpenSC/orgs","repos_url":"https://api.github.com/users/OpenSC/repos","events_url":"https://api.github.com/users/OpenSC/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSC/OpenSC","description":"Open source smart card tools and middleware. PKCS#11/MiniDriver/Tokend","fork":false,"url":"https://api.github.com/repos/OpenSC/OpenSC","forks_url":"https://api.github.com/repos/OpenSC/OpenSC/forks","keys_url":"https://api.github.com/repos/OpenSC/OpenSC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSC/OpenSC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSC/OpenSC/teams","hooks_url":"https://api.github.com/repos/OpenSC/OpenSC/hooks","issue_events_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSC/OpenSC/events","assignees_url":"https://api.github.com/repos/OpenSC/OpenSC/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSC/OpenSC/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSC/OpenSC/tags","blobs_url":"https://api.github.com/repos/OpenSC/OpenSC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSC/OpenSC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSC/OpenSC/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSC/OpenSC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSC/OpenSC/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSC/OpenSC/languages","stargazers_url":"https://api.github.com/repos/OpenSC/OpenSC/stargazers","contributors_url":"https://api.github.com/repos/OpenSC/OpenSC/contributors","subscribers_url":"https://api.github.com/repos/OpenSC/OpenSC/subscribers","subscription_url":"https://api.github.com/repos/OpenSC/OpenSC/subscription","commits_url":"https://api.github.com/repos/OpenSC/OpenSC/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSC/OpenSC/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSC/OpenSC/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSC/OpenSC/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSC/OpenSC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSC/OpenSC/merges","archive_url":"https://api.github.com/repos/OpenSC/OpenSC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSC/OpenSC/downloads","issues_url":"https://api.github.com/repos/OpenSC/OpenSC/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSC/OpenSC/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSC/OpenSC/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSC/OpenSC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSC/OpenSC/labels{/name}","releases_url":"https://api.github.com/repos/OpenSC/OpenSC/releases{/id}","created_at":"2011-07-05T09:45:08Z","updated_at":"2015-04-11T14:58:12Z","pushed_at":"2015-04-12T11:40:00Z","git_url":"git://github.com/OpenSC/OpenSC.git","ssh_url":"git@github.com:OpenSC/OpenSC.git","clone_url":"https://github.com/OpenSC/OpenSC.git","svn_url":"https://github.com/OpenSC/OpenSC","homepage":"https://github.com/OpenSC/OpenSC/wiki","size":40090,"stargazers_count":249,"watchers_count":249,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":169,"mirror_url":null,"open_issues_count":40,"forks":169,"open_issues":40,"watchers":249,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSC/OpenSC/pulls/419"},"html":{"href":"https://github.com/OpenSC/OpenSC/pull/419"},"issue":{"href":"https://api.github.com/repos/OpenSC/OpenSC/issues/419"},"comments":{"href":"https://api.github.com/repos/OpenSC/OpenSC/issues/419/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSC/OpenSC/pulls/419/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSC/OpenSC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSC/OpenSC/pulls/419/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSC/OpenSC/statuses/8840246c4dc4b90c3d5e8595cb9ff0bee3ad679d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":19,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}