* bouncycastle JCE
@ 2001-09-23 8:52 Anthony Green
2001-10-05 21:21 ` Alexandre Petit-Bianco
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Green @ 2001-09-23 8:52 UTC (permalink / raw)
To: rhug-rhats
Taking a break from Tomcat, I checked in build infrastructre for the Bouncy
Castle JCE implementation. The directory doesn't contain any of the source
code -- you'll have to download that yourself. See the README in that
directory. You'll also have to configure with --enable-bouncycastle. And,
finally, you'll need my Security.java I posted to java-patches but haven't
checked in yet :-)
"make check" builds the regressions tests. Not all of them pass. They
probably reflect bugs in our compiler or runtime.
Also, Alex, if you look at the Makefile - I've special cased two "gcj -C"
builds because the compiler goes into a seemingly endless loop.
FYI, I'm going away for a couple of weeks and won't have easy access to email.
TTYL,
AG
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bouncycastle JCE
2001-09-23 8:52 bouncycastle JCE Anthony Green
@ 2001-10-05 21:21 ` Alexandre Petit-Bianco
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Petit-Bianco @ 2001-10-05 21:21 UTC (permalink / raw)
To: rhug-rhats
Anthony Green writes:
> Also, Alex, if you look at the Makefile - I've special cased two
> "gcj -C" builds because the compiler goes into a seemingly endless
> loop.
I filed a PR for that (java/4489) and there's a simple workaround.
./A
2001-10-05 Alexandre Petit-Bianco <apbianco@redhat.com>
* Makefile.am: Removed workaround java/4489.
* Makefile.in: Regenerate.
* upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.java
(generateWorkingKey): Installed workaround java/4489.
Index: Makefile.am
===================================================================
RCS file: /cvs/rhug/rhug/BouncyCastle/Makefile.am,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile.am
--- Makefile.am 2001/09/23 00:12:18 1.1
+++ Makefile.am 2001/10/06 04:17:41
@@ -420,10 +420,10 @@ SUFFIXES = .java .lo .o .obj .class .jar
# "gcj -C" current goes into a seemingly never ending loop. Here's a
# work-around.
-upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.class: upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.java
- cp -f $(srcdir)/upstream/classes/org/bouncycastle/crypto/engines/RijndaelEngine.class $@
-upstream/src/org/bouncycastle/crypto/test/RijndaelTest.class: upstream/src/org/bouncycastle/crypto/test/RijndaelTest.java
- cp -f $(srcdir)/upstream/classes/org/bouncycastle/crypto/test/RijndaelTest.class $@
+# upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.class: upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.java
+# cp -f $(srcdir)/upstream/classes/org/bouncycastle/crypto/engines/RijndaelEngine.class $@
+# upstream/src/org/bouncycastle/crypto/test/RijndaelTest.class: upstream/src/org/bouncycastle/crypto/test/RijndaelTest.java
+# cp -f $(srcdir)/upstream/classes/org/bouncycastle/crypto/test/RijndaelTest.class $@
JAVAX_CLASSFILES = $(lib_javax_crypto_la_SOURCES:.java=.class)
--- ./upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.java~ Thu Jun 14 22:15:30 2001
+++ ./upstream/src/org/bouncycastle/crypto/engines/RijndaelEngine.java Fri Oct 5 19:57:12 2001
@@ -297,7 +297,11 @@ public class RijndaelEngine
throw new IllegalArgumentException("Key length not 182/192/256 bits.");
}
- switch (keyBits >= blockBits ? keyBits : blockBits)
+ // This is a work-around for java/4489
+ // http://gcc.gnu.org/ml/java-prs/2001-q4/msg00005.html
+ int temp_switch_expr = keyBits >= blockBits ? keyBits : blockBits;
+
+ switch (temp_switch_expr)
{
case 128:
ROUNDS = 10;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-05 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-23 8:52 bouncycastle JCE Anthony Green
2001-10-05 21:21 ` Alexandre Petit-Bianco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).