Skip to content

Commit

Permalink
Merge pull request #574 from alvasw/remove_bc_loading_in_hybrid_encry…
Browse files Browse the repository at this point in the history
…ption

HybridEncryption: Remove BouncyCastle Provider loading
  • Loading branch information
alvasw authored Nov 29, 2022
2 parents 3829cbc + 1e8c389 commit 48b793e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions security/src/main/java/bisq/security/HybridEncryption.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@
package bisq.security;

import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider;

import javax.crypto.SecretKey;
import java.security.GeneralSecurityException;
import java.security.KeyPair;
import java.security.PublicKey;
import java.security.Security;

import static com.google.common.base.Preconditions.checkArgument;

Expand All @@ -37,11 +35,6 @@
*/
@Slf4j
public class HybridEncryption {
static {
if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
Security.addProvider(new BouncyCastleProvider());
}
}

public static ConfidentialData encryptAndSign(byte[] message, PublicKey receiverPublicKey, KeyPair senderKeyPair)
throws GeneralSecurityException {
Expand Down

0 comments on commit 48b793e

Please sign in to comment.