199 bytes.putOctetString(iv);
200 out.write(DerValue.tag_Sequence, bytes);
201 } else {
202 out.putOctetString(iv);
203 }
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 }
|
199 bytes.putOctetString(iv);
200 out.write(DerValue.tag_Sequence, bytes);
201 } else {
202 out.putOctetString(iv);
203 }
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 = new StringBuilder();
220 sb.append(LINE_SEP).append(" iv:").append(LINE_SEP).append('[')
221 .append(encoder.encodeBuffer(iv)).append(']');
222
223 if (version != 0) {
224 sb.append(LINE_SEP).append("version:").append(LINE_SEP)
225 .append(version).append(LINE_SEP);
226 }
227 return sb.toString();
228 }
229 }
|