< prev index next >
src/share/classes/com/sun/crypto/provider/DESedeKey.java
Print this page
rev 1387 : 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
Reviewed-by: xuelei, mullan
Contributed-by: alexandre.boulgakov@oracle.com
*** 77,87 ****
DESKeyGenerator.setParityBit(this.key, 8);
DESKeyGenerator.setParityBit(this.key, 16);
}
public byte[] getEncoded() {
! return (byte[])this.key.clone();
}
public String getAlgorithm() {
return "DESede";
}
--- 77,87 ----
DESKeyGenerator.setParityBit(this.key, 8);
DESKeyGenerator.setParityBit(this.key, 16);
}
public byte[] getEncoded() {
! return this.key.clone();
}
public String getAlgorithm() {
return "DESede";
}
*** 126,136 ****
*/
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException
{
s.defaultReadObject();
! key = (byte[])key.clone();
}
/**
* Replace the DESede key to be serialized.
*
--- 126,136 ----
*/
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException
{
s.defaultReadObject();
! key = key.clone();
}
/**
* Replace the DESede key to be serialized.
*
< prev index next >