Talk:Services/Sync/SimplifiedCrypto: Difference between revisions

Line 7: Line 7:
== Deriving encryption and HMAC keys from the Sync Key  ==
== Deriving encryption and HMAC keys from the Sync Key  ==


The hmac used is an SHA-256 HMAC.
The hmac used is an SHA-256 HMAC.<br/>
* Sourcecode of [http://hg.mozilla.org/services/fx-sync/file/12189166cd01/services/sync/modules/util.js#l571 Utils.makeHMACKey()] Sorry, it's a native method.


(A deep link to Utils.makeHMACKey() would be helpful here.)
* What is the value of HMAC_INPUT?
* what is enc + HMAC_INPUT + u + "\x02"? (enc is a byte array, the others are strings)


== Upgrading existing Sync Keys to the new AES key  ==
== Upgrading existing Sync Keys to the new AES key  ==