Example usage for org.bouncycastle.pqc.jcajce.provider BouncyCastlePQCProvider BouncyCastlePQCProvider

List of usage examples for org.bouncycastle.pqc.jcajce.provider BouncyCastlePQCProvider BouncyCastlePQCProvider

Introduction

In this page you can find the example usage for org.bouncycastle.pqc.jcajce.provider BouncyCastlePQCProvider BouncyCastlePQCProvider.

Prototype

public BouncyCastlePQCProvider() 

Source Link

Document

Construct a new provider.

Usage

From source file:com.distrimind.util.crypto.CodeProvider.java

License:Open Source License

private static void ensureBQCProviderLoaded() {
    ensureBouncyCastleProviderLoaded();/*w ww. j av  a 2  s.c  o m*/
    if (bouncyProviderPQC == null) {

        synchronized (CodeProvider.class) {
            if (bouncyProviderPQC == null) {
                bouncyProviderPQC = new BouncyCastlePQCProvider();
                Security.insertProviderAt(bouncyProviderPQC, Security.getProviders().length + 1);
            }
        }
    }
}