{"action":"created","issue":{"url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/131","repository_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos","labels_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/131/comments","events_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/131/events","html_url":"https://github.com/SuperHouse/esp-open-rtos/issues/131","id":150191543,"number":131,"title":"Boost clock rate during CPU-intensive TLS routines","user":{"login":"foogod","id":3247763,"avatar_url":"https://avatars.githubusercontent.com/u/3247763?v=3","gravatar_id":"","url":"https://api.github.com/users/foogod","html_url":"https://github.com/foogod","followers_url":"https://api.github.com/users/foogod/followers","following_url":"https://api.github.com/users/foogod/following{/other_user}","gists_url":"https://api.github.com/users/foogod/gists{/gist_id}","starred_url":"https://api.github.com/users/foogod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foogod/subscriptions","organizations_url":"https://api.github.com/users/foogod/orgs","repos_url":"https://api.github.com/users/foogod/repos","events_url":"https://api.github.com/users/foogod/events{/privacy}","received_events_url":"https://api.github.com/users/foogod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T21:07:49Z","updated_at":"2016-04-21T22:36:30Z","closed_at":null,"body":"When thinking about the recent \"tls slow?\" thread on the maillist, it occurred to me that a lot of the stuff that mbedTLS does is actually CPU-bound, and this is actually a perfect example of a good use case for the \"clock doubling\" capabilities built into the ESP8266.\r\n\r\nWe should look into potentially bumping the clock rate up to 160MHz whenever mbedTLS needs to do cryptographic operations which would otherwise be too slow.  I'm not sure exactly the best way to implement this, as it would most likely require modifying the internals of mbedTLS itself to add calls to `sdk_system_overclock` / `sdk_system_restoreclock` in the right places..  I haven't looked at whether there's any mechanism already built into mbedTLS which might allow us to do hooks like this without modifying its source directly, though..  (Alternately, if not we might be able to come up with a hook mechanism which could be accepted upstream and we could then use so we wouldn't have to maintain a custom mbedTLS source..)"},"comment":{"url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/comments/213145496","html_url":"https://github.com/SuperHouse/esp-open-rtos/issues/131#issuecomment-213145496","issue_url":"https://api.github.com/repos/SuperHouse/esp-open-rtos/issues/131","id":213145496,"user":{"login":"projectgus","id":205573,"avatar_url":"https://avatars.githubusercontent.com/u/205573?v=3","gravatar_id":"","url":"https://api.github.com/users/projectgus","html_url":"https://github.com/projectgus","followers_url":"https://api.github.com/users/projectgus/followers","following_url":"https://api.github.com/users/projectgus/following{/other_user}","gists_url":"https://api.github.com/users/projectgus/gists{/gist_id}","starred_url":"https://api.github.com/users/projectgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectgus/subscriptions","organizations_url":"https://api.github.com/users/projectgus/orgs","repos_url":"https://api.github.com/users/projectgus/repos","events_url":"https://api.github.com/users/projectgus/events{/privacy}","received_events_url":"https://api.github.com/users/projectgus/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T22:36:30Z","updated_at":"2016-04-21T22:36:30Z","body":"(Adding a note that this overlaps with #82, to help keep track.)"}}