src/java.base/share/classes/com/sun/crypto/provider/RC2Parameters.java
changeset 48944 25aa8b9f1dae
parent 47216 71c04702a3d5
equal deleted inserted replaced
48943:e61816fc5276 48944:25aa8b9f1dae
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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
   212 
   212 
   213     /*
   213     /*
   214      * Returns a formatted string describing the parameters.
   214      * Returns a formatted string describing the parameters.
   215      */
   215      */
   216     protected String engineToString() {
   216     protected String engineToString() {
   217         String LINE_SEP = System.getProperty("line.separator");
   217         String LINE_SEP = System.lineSeparator();
   218         HexDumpEncoder encoder = new HexDumpEncoder();
   218         HexDumpEncoder encoder = new HexDumpEncoder();
   219         StringBuilder sb
   219         StringBuilder sb
   220             = new StringBuilder(LINE_SEP + "    iv:" + LINE_SEP + "["
   220             = new StringBuilder(LINE_SEP + "    iv:" + LINE_SEP + "["
   221                 + encoder.encodeBuffer(iv) + "]");
   221                 + encoder.encodeBuffer(iv) + "]");
   222 
   222