src/java.base/share/classes/com/sun/crypto/provider/RC2Parameters.java

Print this page
rev 10526 : 8038277: Improve the bootstrap performance of cacerts keystore (core and security)
Contributed-by: Otavio Santana <otaviojava@java.net>


 204 
 205         return out.toByteArray();
 206     }
 207 
 208     protected byte[] engineGetEncoded(String encodingMethod)
 209         throws IOException {
 210         return engineGetEncoded();
 211     }
 212 
 213     /*
 214      * Returns a formatted string describing the parameters.
 215      */
 216     protected String engineToString() {
 217         String LINE_SEP = System.getProperty("line.separator");
 218         HexDumpEncoder encoder = new HexDumpEncoder();
 219         StringBuilder sb
 220             = new StringBuilder(LINE_SEP + "    iv:" + LINE_SEP + "["
 221                 + encoder.encodeBuffer(iv) + "]");
 222 
 223         if (version != 0) {
 224             sb.append(LINE_SEP + "version:" + LINE_SEP
 225                 + version + LINE_SEP);

 226         }
 227         return sb.toString();
 228     }
 229 }


 204 
 205         return out.toByteArray();
 206     }
 207 
 208     protected byte[] engineGetEncoded(String encodingMethod)
 209         throws IOException {
 210         return engineGetEncoded();
 211     }
 212 
 213     /*
 214      * Returns a formatted string describing the parameters.
 215      */
 216     protected String engineToString() {
 217         String LINE_SEP = System.getProperty("line.separator");
 218         HexDumpEncoder encoder = new HexDumpEncoder();
 219         StringBuilder sb
 220             = new StringBuilder(LINE_SEP + "    iv:" + LINE_SEP + "["
 221                 + encoder.encodeBuffer(iv) + "]");
 222 
 223         if (version != 0) {
 224             sb.append(LINE_SEP).append("version:")
 225                     .append(LINE_SEP).append(version)
 226                     .append(LINE_SEP);
 227         }
 228         return sb.toString();
 229     }
 230 }