summaryrefslogtreecommitdiff
path: root/gnu/javax/crypto/cipher
diff options
context:
space:
mode:
authorDavid Gilbert <david.gilbert@object-refinery.com>2006-04-21 10:52:25 +0000
committerDavid Gilbert <david.gilbert@object-refinery.com>2006-04-21 10:52:25 +0000
commit00ca8cf3d097cd0370a8aad14c6cbad005ac16d3 (patch)
tree45c3f873ae9ea4c40988bb542ae65f191ac6bda6 /gnu/javax/crypto/cipher
parent324430fd7cd7017fd94e98e0c2f317c66d2106aa (diff)
downloadclasspath-00ca8cf3d097cd0370a8aad14c6cbad005ac16d3.tar.gz
2006-04-21 David Gilbert <david.gilbert@object-refinery.com>
* gnu/javax/crypto/cipher/Anubis.java: (selfTest): Use Boolean.valueOf() to avoid creating a new Boolean instance, * gnu/javax/crypto/cipher/Blowfish.java: (selfTest): Likewise, * gnu/javax/crypto/cipher/Cast5.java: (selfTest): Likewise, * gnu/javax/crypto/cipher/Khazad.java: (selfTest): Likewise, * gnu/javax/crypto/cipher/Rijndael.java: (selfTest): Likewise, * gnu/javax/crypto/cipher/Serpent.java: (selfTest): Likewise, * gnu/javax/crypto/cipher/Square.java: (selfTest): Likewise, * gnu/javax/crypto/cipher/Twofish.java: (selfTest): Likewise, * gnu/javax/crypto/mac/UMac32.java: (selfTest): Likewise, * gnu/javax/crypto/prng/CSPRNG.java: (getSystemInstance): Likewise. ----------------------------------------------------------------------
Diffstat (limited to 'gnu/javax/crypto/cipher')
-rw-r--r--gnu/javax/crypto/cipher/Anubis.java2
-rw-r--r--gnu/javax/crypto/cipher/Blowfish.java2
-rw-r--r--gnu/javax/crypto/cipher/Cast5.java2
-rw-r--r--gnu/javax/crypto/cipher/Khazad.java2
-rw-r--r--gnu/javax/crypto/cipher/Rijndael.java2
-rw-r--r--gnu/javax/crypto/cipher/Serpent.java2
-rw-r--r--gnu/javax/crypto/cipher/Square.java2
-rw-r--r--gnu/javax/crypto/cipher/Twofish.java2
8 files changed, 8 insertions, 8 deletions
diff --git a/gnu/javax/crypto/cipher/Anubis.java b/gnu/javax/crypto/cipher/Anubis.java
index 63b97ce4e..ca4e8edfe 100644
--- a/gnu/javax/crypto/cipher/Anubis.java
+++ b/gnu/javax/crypto/cipher/Anubis.java
@@ -576,7 +576,7 @@ public final class Anubis extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Blowfish.java b/gnu/javax/crypto/cipher/Blowfish.java
index 5cb958ee4..ca1fdfbd3 100644
--- a/gnu/javax/crypto/cipher/Blowfish.java
+++ b/gnu/javax/crypto/cipher/Blowfish.java
@@ -688,7 +688,7 @@ public class Blowfish extends BaseCipher
{
result = testKat(TV_KEY, TV_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Cast5.java b/gnu/javax/crypto/cipher/Cast5.java
index cbdfe61f5..a0e0c60f3 100644
--- a/gnu/javax/crypto/cipher/Cast5.java
+++ b/gnu/javax/crypto/cipher/Cast5.java
@@ -1341,7 +1341,7 @@ public class Cast5 extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT, KAT_PT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Khazad.java b/gnu/javax/crypto/cipher/Khazad.java
index b6c27833e..3a95874da 100644
--- a/gnu/javax/crypto/cipher/Khazad.java
+++ b/gnu/javax/crypto/cipher/Khazad.java
@@ -514,7 +514,7 @@ public final class Khazad extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Rijndael.java b/gnu/javax/crypto/cipher/Rijndael.java
index 058c8b346..bcd1872fc 100644
--- a/gnu/javax/crypto/cipher/Rijndael.java
+++ b/gnu/javax/crypto/cipher/Rijndael.java
@@ -852,7 +852,7 @@ public final class Rijndael extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Serpent.java b/gnu/javax/crypto/cipher/Serpent.java
index b323b5017..2ed1e4b55 100644
--- a/gnu/javax/crypto/cipher/Serpent.java
+++ b/gnu/javax/crypto/cipher/Serpent.java
@@ -789,7 +789,7 @@ public class Serpent extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Square.java b/gnu/javax/crypto/cipher/Square.java
index 97773e5ea..a73116eb4 100644
--- a/gnu/javax/crypto/cipher/Square.java
+++ b/gnu/javax/crypto/cipher/Square.java
@@ -511,7 +511,7 @@ public final class Square extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}
diff --git a/gnu/javax/crypto/cipher/Twofish.java b/gnu/javax/crypto/cipher/Twofish.java
index bea7f5d2c..f5565d4b4 100644
--- a/gnu/javax/crypto/cipher/Twofish.java
+++ b/gnu/javax/crypto/cipher/Twofish.java
@@ -902,7 +902,7 @@ public final class Twofish extends BaseCipher
{
result = testKat(KAT_KEY, KAT_CT);
}
- valid = new Boolean(result);
+ valid = Boolean.valueOf(result);
}
return valid.booleanValue();
}