Switch from Bouncycastle to Spongycastle

This commit is contained in:
Brian Pellin committed 2017-01-21 21:00:24 -06:00
1 parent a278ad9c03
commit 9fa5eececf
180 files changed
+37 -21863

No files matched your search

@@ -184,7 +184,7 @@ public class ImporterV3 extends Importer {
if ( newManager.algorithm == PwEncryptionAlgorithm.Rjindal ) {
cipher = CipherFactory.getInstance("AES/CBC/PKCS5Padding");
} else if ( newManager.algorithm == PwEncryptionAlgorithm.Twofish ) {
cipher = CipherFactory.getInstance("TWOFISH/CBC/PKCS7PADDING");
cipher = CipherFactory.getInstance("Twofish/CBC/PKCS7PADDING");
} else {
throw new IOException( "Encryption algorithm is not supported" );
}
@@ -37,7 +37,7 @@ import java.util.zip.GZIPInputStream;
import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import org.bouncycastle.crypto.StreamCipher;
import org.spongycastle.crypto.StreamCipher;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
@@ -82,7 +82,7 @@ public class PwDbV3Output extends PwDbOutput {
if (mPM.algorithm == PwEncryptionAlgorithm.Rjindal) {
cipher = CipherFactory.getInstance("AES/CBC/PKCS5Padding");
} else if (mPM.algorithm == PwEncryptionAlgorithm.Twofish){
cipher = CipherFactory.getInstance("TWOFISH/CBC/PKCS7PADDING");
cipher = CipherFactory.getInstance("Twofish/CBC/PKCS7PADDING");
} else {
throw new Exception();
}
@@ -35,7 +35,7 @@ import java.util.zip.GZIPOutputStream;
import javax.crypto.Cipher;
import javax.crypto.CipherOutputStream;
import org.bouncycastle.crypto.StreamCipher;
import org.spongycastle.crypto.StreamCipher;
import org.xmlpull.v1.XmlSerializer;
import android.util.Xml;