Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
resolves issue 14 where account import fails after register followed …
Browse files Browse the repository at this point in the history
…by login followed by change to password followed by login.
  • Loading branch information
rhodey committed Jul 21, 2014
1 parent 07b6978 commit 3a9b0a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static void importSaltAndEncryptedKeyMaterial(Context context,
byte[] plaintextCipherKey = Arrays.copyOfRange(plaintextKeyMaterial, 0, KeyUtil.CIPHER_KEY_LENGTH_BYTES);
byte[] plaintextMacKey = Arrays.copyOfRange(plaintextKeyMaterial,
KeyUtil.CIPHER_KEY_LENGTH_BYTES,
plaintextCipherKey.length);
KeyUtil.CIPHER_KEY_LENGTH_BYTES + KeyUtil.MAC_KEY_LENGTH_BYTES);

KeyStore.saveEncryptedKeyMaterial(context, saltAndEncryptedKeyMaterial[1]);
KeyStore.saveKeyMaterialSalt( context, salt);
Expand Down

0 comments on commit 3a9b0a1

Please sign in to comment.