{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/23502","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/23502/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/23502/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/23502/events","html_url":"https://github.com/dart-lang/sdk/issues/23502","id":84602448,"number":23502,"title":"need native modInverse and powMod function for big integer","user":{"login":"rinick","id":2742173,"avatar_url":"https://avatars.githubusercontent.com/u/2742173?v=3","gravatar_id":"","url":"https://api.github.com/users/rinick","html_url":"https://github.com/rinick","followers_url":"https://api.github.com/users/rinick/followers","following_url":"https://api.github.com/users/rinick/following{/other_user}","gists_url":"https://api.github.com/users/rinick/gists{/gist_id}","starred_url":"https://api.github.com/users/rinick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rinick/subscriptions","organizations_url":"https://api.github.com/users/rinick/orgs","repos_url":"https://api.github.com/users/rinick/repos","events_url":"https://api.github.com/users/rinick/events{/privacy}","received_events_url":"https://api.github.com/users/rinick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Accepted","name":"Accepted","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-VM","name":"Area-VM","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/C13","name":"C13","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Unassigned","name":"Priority-Unassigned","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"crelier","id":8620091,"avatar_url":"https://avatars.githubusercontent.com/u/8620091?v=3","gravatar_id":"","url":"https://api.github.com/users/crelier","html_url":"https://github.com/crelier","followers_url":"https://api.github.com/users/crelier/followers","following_url":"https://api.github.com/users/crelier/following{/other_user}","gists_url":"https://api.github.com/users/crelier/gists{/gist_id}","starred_url":"https://api.github.com/users/crelier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crelier/subscriptions","organizations_url":"https://api.github.com/users/crelier/orgs","repos_url":"https://api.github.com/users/crelier/repos","events_url":"https://api.github.com/users/crelier/events{/privacy}","received_events_url":"https://api.github.com/users/crelier/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-05-21T20:02:12Z","updated_at":"2015-06-17T20:50:33Z","closed_at":"2015-06-17T20:50:33Z","body":"**What steps will reproduce the problem?**\n\nthis is a dart file which I implemented modeInverse function with native dart big int\nhttps://gist.github.com/rinick/9f1f285dc1e2a18d2d75\n\nthis is a java file that's doing the same thing, except it's using the builtin java modInverse function.\nhttps://gist.github.com/samrg472/8f0bae6d291ef2bc2b95\n\n\n\n**What is the expected output? What do you see instead?**\n\nit takes 650ms to run the java on my pc, and about 8 seconds to run the dart version (11 seconds in checked mode)\n\nTo make dart's native big integer really usable for cryptography purpose, I think it's necessary to have these functions implemented in dartvm. not in dart code: \nmodInverse, powMod, gcd.  it would also be nice if toByteArray and fromByteArray can be implemented too.\n"}}