News for hackers. Stuff that matters.
Re:Building an open source Nest by towynlin on Friday January 17, 2014 @05:37PM (#7078942)
RSA encrypt initial handshake message to cloud: https://github.com/spark/core-communication-lib/blob/master/...

Return message from cloud is decrypted with an RSA private key on the Core: https://github.com/spark/core-communication-lib/blob/master/...

An HMAC signature is verified: https://github.com/spark/core-communication-lib/blob/master/...

If everything checks out, AES-128-CBC session key is saved and IV is rotated with every message exchanged:

encrypt: https://github.com/spark/core-communication-lib/blob/master/...

decrypt: https://github.com/spark/core-communication-lib/blob/master/...

Cheers, Zachary Crockett Spark CTO ;)

Re:Building an open source Nest by skue on Friday January 17, 2014 @05:45PM (#7078982)
Thanks!! Please consider adding that some of this to the Security documentation, and more prominent links to the source code as well.

I actually found your GitHub profile and should have realized that core-communication-lib is what I wanted, but it appears new and doesn't have many stars yet, so I missed it.

Re:Building an open source Nest by towynlin on Friday January 17, 2014 @06:09PM (#7079117)
Great suggestion! I just added this as a security overview section of the README.

https://github.com/spark/core-communication-lib