< prev index next >

src/java.base/share/classes/sun/security/provider/DSA.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 31,40 **** --- 31,41 ---- import java.nio.ByteBuffer; import java.security.*; import java.security.SecureRandom; import java.security.interfaces.*; + import java.security.spec.*; import sun.security.util.Debug; import sun.security.util.DerValue; import sun.security.util.DerInputStream; import sun.security.util.DerOutputStream;
*** 368,382 **** --- 369,396 ---- @Deprecated protected void engineSetParameter(String key, Object param) { throw new InvalidParameterException("No parameter accepted"); } + @Override + protected void engineSetParameter(AlgorithmParameterSpec params) + throws InvalidAlgorithmParameterException { + if (params != null) { + throw new InvalidAlgorithmParameterException("No parameter accepted"); + } + } + @Deprecated protected Object engineGetParameter(String key) { return null; } + @Override + protected AlgorithmParameters engineGetParameters() { + return null; + } + private BigInteger generateR(BigInteger p, BigInteger q, BigInteger g, BigInteger k) { // exponent blinding to hide information from timing channel
< prev index next >