Skip to content
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

Renew Key on KeyPermanentlyInvalidatedException #34

Merged
merged 6 commits into from
Feb 8, 2017
Merged

Conversation

Mauin
Copy link
Owner

@Mauin Mauin commented Feb 5, 2017

Resolves #24

This will delete and renew the key in the Keystore when calling RxFingerprint.encrypt(...) when the keys were invalidated.

@@ -94,6 +102,21 @@ Cipher initDecryptionCipher(byte[] iv) throws CertificateException, NoSuchAlgori
return cipher;
}

private Cipher cipherForEncryption() throws NoSuchAlgorithmException, NoSuchPaddingException, CertificateException, UnrecoverableKeyException, KeyStoreException, NoSuchProviderException, InvalidAlgorithmParameterException, IOException, InvalidKeyException {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation seem to be wrong

@Mauin Mauin added the 2.x label Feb 7, 2017
@Mauin Mauin merged commit e4bdbae into master Feb 8, 2017
@Mauin Mauin deleted the key_renewal branch February 8, 2017 07:04
@Mauin Mauin mentioned this pull request Feb 8, 2017
Mauin added a commit that referenced this pull request Feb 8, 2017
* remove key on encryption if key permanently invalidated

* only catch keypermanentlyinvalidatedexception once

* add Log warning on key renewal

* add key renewal to README.md

* improve log message on key renewal

* reformmat CryptoProvider
Mauin added a commit that referenced this pull request Feb 8, 2017
* remove key on encryption if key permanently invalidated

* only catch keypermanentlyinvalidatedexception once

* add Log warning on key renewal

* add key renewal to README.md

* improve log message on key renewal

* reformmat CryptoProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants