by towynlin · 12y ago · 0 comments
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 ;)
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.