mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 16:22:31 -08:00
Fix ChaCha encryption algorithm support
This commit is contained in:
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.");
|
||||
|
||||
Reference in new issue
Block a user