Fix ChaCha encryption algorithm support

This commit is contained in:
Brian Pellin committed 2017-10-30 23:39:51 -05:00
1 parent eb6d76800c
commit 1715231620
5 files changed
+21 -152

No files matched your search

@@ -33,6 +33,7 @@ import javax.crypto.spec.SecretKeySpec;
import android.os.Build;
import com.keepassdroid.crypto.engine.AesEngine;
import com.keepassdroid.crypto.engine.ChaCha20Engine;
import com.keepassdroid.crypto.engine.CipherEngine;
import com.keepassdroid.crypto.engine.TwofishEngine;
import com.keepassdroid.utils.Types;
@@ -88,6 +89,8 @@ public class CipherFactory {
return new AesEngine();
} else if ( uuid.equals(TwofishEngine.CIPHER_UUID) ) {
return new TwofishEngine();
} else if ( uuid.equals(ChaCha20Engine.CIPHER_UUID)) {
return new ChaCha20Engine();
}
throw new NoSuchAlgorithmException("UUID unrecognized.");