Closed Bug 505401 Opened 15 years ago Closed 15 years ago

Component should expose rewrapKey & verifyPassphrase methods

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: anant, Assigned: anant)

References

Details

Attachments

(1 file, 1 obsolete file)

The WrapPrivateKey and UnwrapPrivate key methods should be scriptable - this helps us re-encrypt a private key with a new passphrase from JS.
Blocks: 443696
Perhaps a rewrap call with the current and new passphrases is better?
Yes! I think that is the best (or rather, the *only*) way to do this. NSS doesn't seem to allow export of unencrypted private keys :)
Summary: Component should expose RSA key methods → Component should expose an RSA key rewrap method
This function will do what we want. Unit test included.
Attachment #389622 - Flags: review?(thunder)
While we're on the topic of changing crypto interfaces, I was thinking it will be nice to have a verifyPassphrase method that takes a key and passphrase and returns a boolean value. This will help us check for correctness of a user's passphrase before having to download the symmetric keys providing faster feedback.
Unit tests included.
Attachment #389622 - Attachment is obsolete: true
Attachment #389722 - Flags: review?(thunder)
Attachment #389622 - Flags: review?(thunder)
Summary: Component should expose an RSA key rewrap method → Component should expose rewrapKey & verifyPassphrase methods
Comment on attachment 389722 [details] [diff] [review] Adds a verifyPassphrase method in addition to rewrapPrivateKey r=thunder
Attachment #389722 - Flags: review?(thunder) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 505571
Blocks: 506085
Component: Firefox Sync: Crypto → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: