All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.akeyless.crypto.rsa.internal.JCAUtil Maven / Gradle / Ivy

There is a newer version: 0.0.10
Show newest version
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() {
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy