equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 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 |
132 |
132 |
133 /* |
133 /* |
134 * Returns a formatted string describing the parameters. |
134 * Returns a formatted string describing the parameters. |
135 */ |
135 */ |
136 protected String engineToString() { |
136 protected String engineToString() { |
137 String LINE_SEP = System.getProperty("line.separator"); |
137 String LINE_SEP = System.lineSeparator(); |
138 HexDumpEncoder encoder = new HexDumpEncoder(); |
138 HexDumpEncoder encoder = new HexDumpEncoder(); |
139 StringBuilder sb |
139 StringBuilder sb |
140 = new StringBuilder(LINE_SEP + " iv:" + LINE_SEP + "[" |
140 = new StringBuilder(LINE_SEP + " iv:" + LINE_SEP + "[" |
141 + encoder.encodeBuffer(iv) + "]"); |
141 + encoder.encodeBuffer(iv) + "]"); |
142 |
142 |