com.akeyless.crypto.rsa.internal.JCAUtil Maven / Gradle / Ivy
package com.akeyless.crypto.rsa.internal;
import java.security.SecureRandom;
public final class JCAUtil {
private static final int ARRAY_SIZE = 4096;
private JCAUtil() {
}
public static int getTempArraySize(int var0) {
return Math.min(4096, var0);
}
public static SecureRandom getSecureRandom() {
return JCAUtil.CachedSecureRandomHolder.instance;
}
private static class CachedSecureRandomHolder {
public static SecureRandom instance = new SecureRandom();
private CachedSecureRandomHolder() {
}
}
}