src/share/classes/com/sun/crypto/provider/DHKeyFactory.java

Print this page
7196805: DH Key interoperability testing between SunJCE and JsafeJCE not successful

*** 1,7 **** /* ! * Copyright (c) 1997, 2011, 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) 1997, 2013, 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
*** 81,91 **** throw new InvalidKeySpecException ("Inappropriate key specification"); } } catch (InvalidKeyException e) { throw new InvalidKeySpecException ! ("Inappropriate key specification"); } } /** * Generates a private key object from the provided key specification --- 81,91 ---- throw new InvalidKeySpecException ("Inappropriate key specification"); } } catch (InvalidKeyException e) { throw new InvalidKeySpecException ! ("Inappropriate key specification", e); } } /** * Generates a private key object from the provided key specification
*** 116,126 **** throw new InvalidKeySpecException ("Inappropriate key specification"); } } catch (InvalidKeyException e) { throw new InvalidKeySpecException ! ("Inappropriate key specification"); } } /** * Returns a specification (key material) of the given key object --- 116,126 ---- throw new InvalidKeySpecException ("Inappropriate key specification"); } } catch (InvalidKeyException e) { throw new InvalidKeySpecException ! ("Inappropriate key specification", e); } } /** * Returns a specification (key material) of the given key object
*** 225,233 **** } else { throw new InvalidKeyException("Wrong algorithm type"); } } catch (InvalidKeySpecException e) { ! throw new InvalidKeyException("Cannot translate key"); } } } --- 225,233 ---- } else { throw new InvalidKeyException("Wrong algorithm type"); } } catch (InvalidKeySpecException e) { ! throw new InvalidKeyException("Cannot translate key", e); } } }