summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/crypto/RSAPublicKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/noreply/fancydress/crypto/RSAPublicKey.java')
-rw-r--r--src/org/noreply/fancydress/crypto/RSAPublicKey.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/noreply/fancydress/crypto/RSAPublicKey.java b/src/org/noreply/fancydress/crypto/RSAPublicKey.java
index d8d3d16..b36e9ec 100644
--- a/src/org/noreply/fancydress/crypto/RSAPublicKey.java
+++ b/src/org/noreply/fancydress/crypto/RSAPublicKey.java
@@ -53,7 +53,7 @@ public class RSAPublicKey {
*/
public RSAPublicKey(byte[] asnEncoded) {
String p = new String("He who would make his own liberty secure, must guard even his enemy from oppression.");
- rsa_cipher = new OAEPEncoding(new RSAEngine(), new SHA1Digest(), CryptoPrimitives.hash(Util.toOctets(p)));
+ rsa_cipher = new OAEPEncoding(new RSAEngine(), new SHA1Digest(), Util.toOctets(p));
ByteArrayInputStream bIn = new ByteArrayInputStream(asnEncoded);
DERInputStream dIn = new DERInputStream(bIn);