CVS update: JGroups/src/org/jgroups/protocols ENCRYPT.java
"Bela Ban" <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/08/17 08:36:06
Modified: src/org/jgroups/protocols ENCRYPT.java
Log:
fixed concurrent access to cipher (https://jira.jboss.org/browse/JGRP-1228)
Revision Changes Path
1.61 +6 -2 JGroups/src/org/jgroups/protocols/ENCRYPT.java
Index: ENCRYPT.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/ENCRYPT.java,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- ENCRYPT.java 17 Aug 2010 08:34:11 -0000 1.60
+++ ENCRYPT.java 17 Aug 2010 08:36:06 -0000 1.61
@@ -1,4 +1,4 @@
-// $Id: ENCRYPT.java,v 1.60 2010/08/17 08:34:11 belaban Exp $
+// $Id: ENCRYPT.java,v 1.61 2010/08/17 08:36:06 belaban Exp $
package org.jgroups.protocols;
@@ -943,7 +943,11 @@
private SecretKeySpec decodeKey(byte[] encodedKey) throws Exception {
// try and decode secrey key sent from keyserver
- byte[] keyBytes=asymCipher.doFinal(encodedKey);
+ byte[] keyBytes;
+
+ synchronized(this) {
+ keyBytes=asymCipher.doFinal(encodedKey);
+ }
SecretKeySpec keySpec=null;
try {
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev