src/jdk.crypto.ec/share/classes/sun/security/ec/ECDSASignature.java
branchJDK-8145252-TLS13-branch
changeset 56542 56aaa6cb3693
parent 47216 71c04702a3d5
child 52946 752e57845ad2
equal deleted inserted replaced
56541:92cbbfc996f3 56542:56aaa6cb3693
     1 /*
     1 /*
     2  * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   425     protected void engineSetParameter(String param, Object value)
   425     protected void engineSetParameter(String param, Object value)
   426             throws InvalidParameterException {
   426             throws InvalidParameterException {
   427         throw new UnsupportedOperationException("setParameter() not supported");
   427         throw new UnsupportedOperationException("setParameter() not supported");
   428     }
   428     }
   429 
   429 
       
   430     @Override
       
   431     protected void engineSetParameter(AlgorithmParameterSpec params)
       
   432             throws InvalidAlgorithmParameterException {
       
   433         if (params != null) {
       
   434             throw new InvalidAlgorithmParameterException("No parameter accepted");
       
   435         }
       
   436     }
       
   437 
   430     // get parameter, not supported. See JCA doc
   438     // get parameter, not supported. See JCA doc
   431     @Override
   439     @Override
   432     @Deprecated
   440     @Deprecated
   433     protected Object engineGetParameter(String param)
   441     protected Object engineGetParameter(String param)
   434             throws InvalidParameterException {
   442             throws InvalidParameterException {
   435         throw new UnsupportedOperationException("getParameter() not supported");
   443         throw new UnsupportedOperationException("getParameter() not supported");
       
   444     }
       
   445 
       
   446     @Override
       
   447     protected AlgorithmParameters engineGetParameters() {
       
   448         return null;
   436     }
   449     }
   437 
   450 
   438     // Convert the concatenation of R and S into their DER encoding
   451     // Convert the concatenation of R and S into their DER encoding
   439     private byte[] encodeSignature(byte[] signature) throws SignatureException {
   452     private byte[] encodeSignature(byte[] signature) throws SignatureException {
   440 
   453