Big directory refactoring : no more 'trunk' (was from SVN), satelite projects like rsa, hex, ... out of ciform hierarchy (no direct dependency), some cleaning

This commit is contained in:
cbonar 2012-01-26 12:59:59 +01:00
parent 931c1d583b
commit 3c8af01db3
68 changed files with 95 additions and 34 deletions

View file

Before

Width:  |  Height:  |  Size: 333 B

After

Width:  |  Height:  |  Size: 333 B

View file

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

Before

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 230 B

View file

@ -1,20 +0,0 @@
<ivy-module version="2.0">
<info organisation="crypto" module="rsa" revision="1.0" status="integration">
<license name="Copyright 2000 by John M Hanna" url="http://sourceforge.net/projects/shop-js" />
<license name="GNU General Public License (GPL)" url="http://www.gnu.org/copyleft/gpl.html" />
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=crypto+rsa+ivy" />
<repository name="plugnauth@sourceforge" url="http://plugnauth.sourceforge.net/ivy" ivys="true" artifacts="true" />
<description homepage="http://plugnauth.sourceforge.net/crypto">
This library provides an implementation of the RSA cipher.
</description>
</info>
<publications>
<!-- The source script as plain text, including all inner informations and comments. -->
<artifact name="rsa" type="javascript" ext="js" />
<!-- An obfuscated, size-reduced version of the script. Use to speed up loading time in final environment. -->
<artifact name="rsa-compressed" type="javascript" ext="js" />
</publications>
<dependencies>
<!-- no dependency required -->
</dependencies>
</ivy-module>

View file

@ -35,3 +35,31 @@ lib.dir=${target.dir}/lib
# Where to copy the api documentation
doc.dir=${target.dir}/api
# name of the ivy configurations
target.conf.min=min
########################################
#
# External programs
#
########################################
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ivy settings
#ivy.file = ${basedir}/ivy.xml
#repository.dir=${target}/ivy
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
#yuicompressor.jar=/opt/yuicompressor/yuicompressor.jar
# (required) -> define this property in your "local.properties" file
# Command line to execute JSDoc (http://jsdoc.sourceforge.net)
#jsdoc=/opt/JSDoc/jsdoc.pl

View file

@ -13,9 +13,6 @@
<!-- default properties, specific to this project -->
<property file="local.properties"/>
<property file="build.properties"/>
<!-- properties common to all projects -->
<property file="../../local.properties"/>
<property file="../../common.properties"/>
<!-- ==================== -->
@ -37,7 +34,7 @@
<!-- nothing to do -->
</target>
<target name="package" depends="test, doc, build-default, build-compressed" description="Takes the compiled code and package it in its distributable format, such as a JAR.">
<target name="package" depends="test, doc, build-default, build-min" description="Takes the compiled code and package it in its distributable format, such as a JAR.">
<!-- nothing more to do -->
</target>
@ -80,8 +77,8 @@
<copy file="${src.dir}/rsa.js" tofile="${lib.dir}/rsa-${ivy.revision}.js" />
</target>
<target name="build-compressed" depends="validate" description="Builds the compressed version of the package.">
<java jar="${yuicompressor.jar}" fork="true" output="${lib.dir}/rsa-compressed-${ivy.revision}.js" failonerror="true">
<target name="build-min" depends="validate" description="Builds the minified version of the package.">
<java jar="${yuicompressor.jar}" fork="true" output="${lib.dir}/rsa-${target.conf.min}-${ivy.revision}.js" failonerror="true">
<arg line="--type js" />
<arg file="${src.dir}/rsa.js"/>
</java>
@ -91,12 +88,4 @@
<delete includeemptydirs="true" dir="${target.dir}"/>
</target>
<!-- ==================== -->
<!-- CruiseControl targets -->
<!-- ==================== -->
<target name="cruisecontrol-build" depends="verify">
</target>
</project>

26
codecs/rsa/ivy.xml Normal file
View file

@ -0,0 +1,26 @@
<ivy-module version="2.0">
<info organisation="crypto" module="rsa" revision="1.0" status="integration">
<license name="Copyright 2000 by John M Hanna" url="http://sourceforge.net/projects/shop-js" />
<license name="GNU General Public License (GPL)" url="http://www.gnu.org/copyleft/gpl.html" />
<ivyauthor name="Nicolas BONARDELLE" url="http://nicobo.net/contact?subject=crypto+rsa+ivy" />
<repository name="nicobo.net" url="http://code.google.com/p/ciform/files" ivys="true" artifacts="true" />
<description homepage="http://code.google.com/p/ciform">
This library provides a Javascript implementation of the RSA cipher.
</description>
</info>
<configurations>
<conf name="src"/>
<conf name="min"/>
</configurations>
<publications>
<artifact name="rsa" type="javascript" ext="js">
<!-- The source script as plain text, including all inner informations and comments. -->
<conf name="src" />
<!-- An obfuscated, size-reduced version of the script. Use to speed up loading time in final environment. -->
<conf name="min" />
</artifact>
</publications>
<dependencies>
<!-- no dependency required -->
</dependencies>
</ivy-module>

View file

@ -0,0 +1,19 @@
# JsUnit files
#jsunit.dir=/opt/jsunit
jsunit.coreJs=${jsunit.dir}/app/jsUnitCore.js
#jsunit.build=${jsunit.dir}/build.xml
jsunit.testRunner=${jsunit.dir}/testRunner.html
#jsunit.browsers=/usr/bin/firefox,/usr/bin/konqueror
# Ivy settings
ant.ivytask.path=C:/IBM/SDPShared/plugins/org.apache.ant_1.7.0.v200803061910/lib/ivy.jar
#ivy.file = ${basedir}/ivy.xml
#repository.dir=${target}/ivy
# (required) -> define this property in your "local.properties" file
# Full path to the jar of the YUI compressor (http://developer.yahoo.com/yui/compressor)
yuicompressor.jar=../tools/yuicompressor-2.4.7.jar
# (required) -> define this property in your "local.properties" file
# Command line to execute JSDoc (http://jsdoc.sourceforge.net)
jsdoc=../tools/JSDoc/jsdoc.pl

View file

@ -1,3 +1,12 @@
//
// NOTE : The original code is wrapped so that the defined functions don't collide with existing ones.
// See http://michaux.ca/articles/javascript-namespacing.
//
Crypto_RSA = (function() {
//
// START OF ORIGINAL CODE
//
/* RSA public key encryption/decryption
* The following functions are (c) 2000 by John M Hanna and are
@ -392,3 +401,13 @@ function b2mpi(b)
return rr;
}
//
// END OF ORIGINAL CODE
//
return {
encrypt: RSAencrypt,
decrypt: RSAdecrypt
};
})();

Binary file not shown.

Binary file not shown.