Lines Matching refs:DHParameterSpec
35 import javax.crypto.spec.DHParameterSpec;
55 private final static Map<Integer,DHParameterSpec> dhCache;
69 public static DHParameterSpec getCachedDHParameterSpec(int keyLength) {
93 public static DHParameterSpec getDHParameterSpec(int keyLength,
96 DHParameterSpec spec = getCachedDHParameterSpec(keyLength);
104 spec = params.getParameterSpec(DHParameterSpec.class);
129 (new HashMap<Integer,DHParameterSpec>());
221 dhCache.put(Integer.valueOf(512), new DHParameterSpec(p512, g512));
222 dhCache.put(Integer.valueOf(768), new DHParameterSpec(p768, g768));
223 dhCache.put(Integer.valueOf(1024), new DHParameterSpec(p1024, g1024));