mozilla-services/android-sync — comment on commit 563dc5294f7a3e2734d789b5880b0ecc063deedd
File:  line 0
By ncalexan:

I have spent 2 hours 2 times deciphering what SyncCryptographer does, and it's not doing anything more than decrypting that blob using the specified sync key (from KeyBundle(username, friendlyBase32SyncKey and re-packaging it as JSON. That's it.

This is just gravy on top of CryptoInfo.decrypted() (via CryptoRecord.decrypt), which is tested about a billion different ways, and is basically the path through testSetKeysFromWBO.

I have a patch brewing for testing EnsureKeysStage which will do something close to this, in any case.

Finally: this code path *was never exercised*. There were no references to SyncCryptographer when I began!