Code example for DHParameterSpec

0
 
    private static final int l = 511; 
 
    public AlgorithmParametersTestDH() { 
        super("DH", new AlgorithmParameterKeyAgreementHelper("DH"), 
                new DHParameterSpec(new BigInteger(P), new BigInteger(Q), l)); 
 
    } 
 
    @TestTargets({ 
        @TestTargetNew( 
                level=TestLevel.ADDITIONAL, 
                method="getInstance", 
                args={String.class} 
        ), 
        @TestTargetNew( 
                level=TestLevel.ADDITIONAL, 
                method="init", 
                args={byte[].class} 
        ), 
        @TestTargetNew(