equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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 |
76 DESKeyGenerator.setParityBit(this.key, 8); |
76 DESKeyGenerator.setParityBit(this.key, 8); |
77 DESKeyGenerator.setParityBit(this.key, 16); |
77 DESKeyGenerator.setParityBit(this.key, 16); |
78 } |
78 } |
79 |
79 |
80 public byte[] getEncoded() { |
80 public byte[] getEncoded() { |
81 return (byte[])this.key.clone(); |
81 return this.key.clone(); |
82 } |
82 } |
83 |
83 |
84 public String getAlgorithm() { |
84 public String getAlgorithm() { |
85 return "DESede"; |
85 return "DESede"; |
86 } |
86 } |
125 */ |
125 */ |
126 private void readObject(java.io.ObjectInputStream s) |
126 private void readObject(java.io.ObjectInputStream s) |
127 throws java.io.IOException, ClassNotFoundException |
127 throws java.io.IOException, ClassNotFoundException |
128 { |
128 { |
129 s.defaultReadObject(); |
129 s.defaultReadObject(); |
130 key = (byte[])key.clone(); |
130 key = key.clone(); |
131 } |
131 } |
132 |
132 |
133 /** |
133 /** |
134 * Replace the DESede key to be serialized. |
134 * Replace the DESede key to be serialized. |
135 * |
135 * |