bypassing key-stretching (Was Re: 10.21.13 Engineering Progress Report for Firefox Accounts and Sync.next)
lhilaiel at mozilla.com
Fri Nov 8 00:56:40 PST 2013
On Nov 6, 2013, at 10:21 PM, Brian Warner <warner at mozilla.com> wrote:
>> On Nov 6, 2013, at 3:57 AM, Lloyd Hilaiel <lhilaiel at mozilla.com
>> <mailto:lhilaiel at mozilla.com>> wrote:
>>> Longer term though: We defined a security architecture optimized for
>>> sync originally in picl-idp. We've now learned that the scope of
>>> picl-idp is greatly expanded, and we must support firefoxos and web
>>> based authentication. To do so we are reverting to raw_password.
> Boo scope creep. Even if it's predictable scope creep :).
Scope creep is an indicator that we’re building incredibly important stuff here. Not boo. Yay. And in addition to expanding the scope of Firefox Accounts, we’ve reduced the scope of short term sync work.
>> FWIW, the current architecture is flexible in whether or not it does
>> scrypt and how many rounds of PBKDF it does. SRP is baked in, but
>> that's not a big deal.
> Yeah, my intention was always to do as much PBKDF as our slowest
> supported clients could do in a reasonable time. If 10k+10k rounds is
> too much, let's explore 5k+5k or even 1k+1k.
Meta point - it’s a friday hack to determine sign in latency as dictated by our current auth system. I think we should figure out what we can do on our slowest supported clients (FxOS) soonish, and then set the parameters to address that. Because we will ship 1.3 with raw password, this doesn’t need to be highest priority.
SRP implies some round trips IIRC, scrypt facilitation sandwiched between local PBKDF2 ALSO implies round trips. I can tell ya right now 6 round trips and 4s of compute to sign in ain’t gonna cut the mustard.
(now hopefully, I believe we can still have industry leading password handling AND an acceptable UX - but it requires tuning the current security params led by experimentation on fxos)
Alternately, we could do something similar but better than what, last pass does - have a fixed time allocation for PBKDF2 on device, and complete on server. That would require we ditch SRP IIRC. tradeoffs abound, eh?
> Dev-fxacct mailing list
> Dev-fxacct at mozilla.org
More information about the Dev-fxacct