harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r613597 - in /harmony/standard/depends/jars: ./ bcprov/ bcprov/bcprov-jdk15-138/ bcprov/stubs/ bcprov/stubs/org/ bcprov/stubs/org/bouncycastle/ bcprov/stubs/org/bouncycastle/crypto/ bcprov/stubs/org/bouncycastle/crypto/engines/
Date Sun, 20 Jan 2008 16:21:24 GMT
Author: hindessm
Date: Sun Jan 20 08:21:23 2008
New Revision: 613597

URL: http://svn.apache.org/viewvc?rev=613597&view=rev
Log:
Adding bcprov.noidea.jar and helper ant script.

Added:
    harmony/standard/depends/jars/
    harmony/standard/depends/jars/bcprov/
    harmony/standard/depends/jars/bcprov/bcprov-jdk15-138/
    harmony/standard/depends/jars/bcprov/bcprov-jdk15-138/bcprov.noidea.jar   (with props)
    harmony/standard/depends/jars/bcprov/build.xml
    harmony/standard/depends/jars/bcprov/stubs/
    harmony/standard/depends/jars/bcprov/stubs/org/
    harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/
    harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/
    harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/engines/
    harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java

Added: harmony/standard/depends/jars/bcprov/bcprov-jdk15-138/bcprov.noidea.jar
URL: http://svn.apache.org/viewvc/harmony/standard/depends/jars/bcprov/bcprov-jdk15-138/bcprov.noidea.jar?rev=613597&view=auto
==============================================================================
Binary file - no diff available.

Propchange: harmony/standard/depends/jars/bcprov/bcprov-jdk15-138/bcprov.noidea.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: harmony/standard/depends/jars/bcprov/build.xml
URL: http://svn.apache.org/viewvc/harmony/standard/depends/jars/bcprov/build.xml?rev=613597&view=auto
==============================================================================
--- harmony/standard/depends/jars/bcprov/build.xml (added)
+++ harmony/standard/depends/jars/bcprov/build.xml Sun Jan 20 08:21:23 2008
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+     
+      http://www.apache.org/licenses/LICENSE-2.0
+     
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+  implied.  See the License for the specific language governing
+  permissions and limitations under the License.
+
+ -->
+<project name="bcprov-no-idea" default="default">
+    <description>
+    Remove IDEA from bcprov.jar.
+    </description>
+
+    <property name="bcprov.dir" location="bcprov-jdk15-138" />
+    <property name="bcprov.orig.jar" location="${bcprov.dir}/bcprov.jar" />
+    <property name="bcprov.noidea.jar"
+              location="${bcprov.dir}/bcprov.noidea.jar" />
+
+    <target name="default" depends="-compile,-fix-jar,clean" />
+
+    <target name="-compile">
+        <mkdir dir="bin" />
+        <javac srcdir="stubs" destdir="bin" target="1.5"
+               classpath="${bcprov.orig.jar}" />
+
+        <uptodate property="bcprov.uptodate"
+                  targetfile="${bcprov.noidea.jar}">
+            <srcfiles file="${bcprov.orig.jar}" />
+            <srcfiles dir="depends/files/bcprov"
+                      includes="**/IDEAEngine.class" />
+        </uptodate>
+    </target>
+
+    <target name="-fix-jar" unless="bcprov.uptodate" depends="-compile">
+        <zip destfile="${bcprov.noidea.jar}">
+            <zipfileset src="${bcprov.orig.jar}">
+                <exclude name="**/BCKEY.*" />
+                <exclude name="**/IDEAEngine.class" />
+            </zipfileset>
+            <fileset dir="bin">
+                <include name="**/IDEAEngine.class" />
+            </fileset>
+        </zip>
+    </target>
+
+    <target name="clean">
+        <delete file="${bcprov.orig.jar}" />
+        <delete dir="bin" />
+    </target>
+</project>

Added: harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java
URL: http://svn.apache.org/viewvc/harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java?rev=613597&view=auto
==============================================================================
--- harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java
(added)
+++ harmony/standard/depends/jars/bcprov/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java
Sun Jan 20 08:21:23 2008
@@ -0,0 +1,59 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.bouncycastle.crypto.engines;
+
+import org.bouncycastle.crypto.*;
+import org.bouncycastle.crypto.params.KeyParameter;
+
+public class IDEAEngine implements BlockCipher
+{
+
+    private static String message =
+        "IDEA not supported see "+
+          "http://harmony.apache.org/documentation/idea_algorithm.html";
+
+    public IDEAEngine()
+    {
+    }
+
+    public void init(boolean forEncryption, CipherParameters params)
+    {
+        throw new IllegalArgumentException(message);
+    }
+
+    public String getAlgorithmName()
+    {
+        return "IDEA";
+    }
+
+    public int getBlockSize()
+    {
+        return 8;
+    }
+
+    public int processBlock(byte[] in, int inOff, byte[] out, int outOff)
+    {
+        throw new IllegalStateException(message);
+    }
+
+    public void reset()
+    {
+    }
+
+    protected static final int BLOCK_SIZE = 8;
+}



Mime
View raw message