{"action":"opened","issue":{"url":"https://api.github.com/repos/quartzjer/ursa/issues/95","labels_url":"https://api.github.com/repos/quartzjer/ursa/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/quartzjer/ursa/issues/95/comments","events_url":"https://api.github.com/repos/quartzjer/ursa/issues/95/events","html_url":"https://github.com/quartzjer/ursa/issues/95","id":90409974,"number":95,"title":"Decrypt hanging forever on bad encrypted sequence","user":{"login":"siboulet","id":2367545,"avatar_url":"https://avatars.githubusercontent.com/u/2367545?v=3","gravatar_id":"","url":"https://api.github.com/users/siboulet","html_url":"https://github.com/siboulet","followers_url":"https://api.github.com/users/siboulet/followers","following_url":"https://api.github.com/users/siboulet/following{/other_user}","gists_url":"https://api.github.com/users/siboulet/gists{/gist_id}","starred_url":"https://api.github.com/users/siboulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siboulet/subscriptions","organizations_url":"https://api.github.com/users/siboulet/orgs","repos_url":"https://api.github.com/users/siboulet/repos","events_url":"https://api.github.com/users/siboulet/events{/privacy}","received_events_url":"https://api.github.com/users/siboulet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-23T14:49:30Z","updated_at":"2015-06-23T14:49:30Z","closed_at":null,"body":"In decrypt(), if buf is not a properly encrypted sequence, ursa will just hang there forever.\r\n\r\nvar buf = new Buffer('random stuff');\r\nvar decrypt = key.decrypt(buf); // hang here forever\r\n\r\nUsing latest 0.8.5\r\n"}}