-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key Backup: add passphrase support #619
Conversation
…th a recovery key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
little remarks
authData.publicKey = [decryption generateKey:&error]; | ||
if (password) | ||
{ | ||
// Generate a private from the password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a private key"
+ (nullable NSData *)generatePrivateKeyWithPassword:(NSString*)password salt:(NSString**)salt iterations:(NSUInteger*)iterations error:(NSError * _Nullable *)error; | ||
|
||
/** | ||
Retrieve a private key from {password, salt, iterations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
)
-> }
Fixes element-hq/element-ios#2127.
There is also an update in
restoreKeyBackup
so that it fails in case of bad recovery key (or password now) instead of succeeding with 0 keys imported.