1
0
Fork 1

Revert BCPQC

This commit is contained in:
Arne 2024-09-22 21:50:23 +02:00
parent 14bab395d5
commit 93b096fcd6
3 changed files with 4 additions and 12 deletions

View file

@ -111,17 +111,9 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
if (account == null || connectionService == null) {
throw new IllegalArgumentException("account and service cannot be null");
}
// this way for adding bouncycastle to android
//Security.removeProvider("BC");
// Confirm that positioning this provider at the end works for your needs!
Security.addProvider(new BouncyCastleProvider());
if (Security.getProvider("BCPQC") == null) {
Security.addProvider(new BouncyCastlePQCProvider());
if (Security.getProvider("BC") == null) {
Security.addProvider(new BouncyCastleProvider());
}
//if (Security.getProvider("BC") == null) {
// Security.addProvider(new BouncyCastleProvider());
//}
this.mXmppConnectionService = connectionService;
this.account = account;
this.axolotlStore = new SQLiteAxolotlStore(this.account, this.mXmppConnectionService);

View file

@ -36,7 +36,7 @@ public class XmppAxolotlMessage {
private static final String KEYTYPE = "AES";
private static final String CIPHERMODE = "AES/GCM/NoPadding";
private static final String PROVIDER = "BCPQC";
private static final String PROVIDER = "BC";
private final List<XmppAxolotlSession.AxolotlKey> keys;
private final Jid from;
private final int sourceDeviceId;

View file

@ -70,7 +70,7 @@ public class ExportBackupWorker extends Worker {
public static final String KEYTYPE = "AES";
public static final String CIPHERMODE = "AES/GCM/NoPadding";
public static final String PROVIDER = "BCPQC";
public static final String PROVIDER = "BC";
public static final String MIME_TYPE = "application/vnd.conversations.backup";