On 08/18/2009 02:29 AM, Marc Kaeser wrote:
Thanks for your answer. I'm looking at nsSDR.cpp and I ask to myself:
is the Master Password used as an encryption key, or where does the
key come from? Does mozStorage encrypt the credentials also if the
Master Password isn't set? I hope I'll finde the answer in pk11sdr.
The master password is the 'token or module' password for the softoken.
SDR keys (as well any private keys you may use for SSL client auth, if
any) are stored in the softoken. The master password unlocks the
softoken (login). Physically that means the master password is used to
generate a PBE key, which is used to encrypt/decrypt the keys in the
softoken key database. Those keys are the keys used to actually
encrypt/decrypt your username/passwords.
I want to protect the encryption key using a TPM, so I wanted to know
(and find in the source code) which key I do best to protect. But I
don't understand the crypto-token datastructure in XPCOM yet, and how
it works to be "logged in" as an authenticated user in order to have
FF (or its Security module) release my Logins for the LoginManager in
the DB3.
If you have a PKCS #11 module for the TPM, it is possible (in theory) to
store the SDR key in the TPM and unlock the TPM to get access.
Unfortunately the SDR system does not have a way to search tokens other
than softoken for a given key. Such a patch would be possible (code
exists in mozilla/security/nss/lib/pk11wrap/pk11sdr.c) if you wanted to
look into it.
bob
anyway, thanks!
--
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto