Skip to content
Browse files

Remove the separate properties hack

  • Loading branch information...
1 parent e792d10 commit 2cd662d0a90d7a73c6aa530004d71b59f3460b2e Martin Paljak committed Apr 21, 2010
View
6 Cflex.properties
@@ -1,6 +0,0 @@
-CARD_NAME=Cflex
-JAVA_BUILD_HOME=${basedir}/depends/jdk
-JC_HOME=${basedir}/depends/jc212
-API_JAR=${JC_HOME}/lib/api21.jar
-API_EXPORT_FILES=${JC_HOME}/api21_export_files
-CAPTRANS=${basedir}/depends/captransf.jar
View
73 CflexCapabilities.properties
@@ -1,73 +0,0 @@
-# Customize here, please
-
-# Selectively enable algorithms (what is disabled returns SW_UNSUPPORTED_FEATURE),
-# crypto operations and PIN policies.
-# FEATURES = -DWITH_DSA -DWITH_RSA -DWITH_DES -DWITH_3DES \
-# -DWITH_ENCRYPT -DWITH_SIGN -DWITH_EXT_AUTH -DWITH_RSA_2048 \
-# -DWITH_PIN_POLICY -DWITH_KEY_POLICY -DWITH_AES -DWITH_JC22 -DWITH_GARBAGE_COLLECTION \
-# -DWITH_SERIAL -DWRITE_LABEL_ONCE \
-# -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT \
-# -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE
-FEATURES = -DWITH_RSA -DWITH_ENCRYPT -DWITH_DELETE_KEY
-
-# We must enable selectively enable supported key lengths, cipher and signatures algorithms
-
-# Possible key lengths for all algorithms
-
-# RSA
-# -DWITH_RSA_512 -DWITH_RSA_768 -DWITH_RSA_1024 -DWITH_RSA_2048
-RSAKEYLENGTHS = -DWITH_RSA_1024
-
-# DSA
-# -DWITH_DSA_512 -DWITH_DSA_768 -DWITH_DSA_1024
-DSAKEYLENGTHS = -DWITH_DSA_1024
-
-# AES
-# -DWITH_AES_128 -DWITH_AES_192 -DWITH_AES_256
-AESKEYLENGTHS =
-
-# Possible cipher algorithms for all algorithms
-
-# RSA cipher algorithms
-# -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1 \
-# -DWITH_CIPHER_RSA_ISO9796 -DWITH_CIPHER_RSA_ISO14888 \
-# -DWITH_CIPHER_RSA_PKCS1_OAEP
-RSACIPHERALGORITHMS = -DWITH_CIPHER_RSA_NOPAD
-
-# DES cipher algorithms
-# -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD \
-# -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 \
-# -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 \
-# -DWITH_CIPHER_DES_CBC_PKCS5 -DWITH_CIPHER_DES_ECB_PKCS5
-DESCIPHERALGORITHMS =
-
-# AES cipher algorithms
-# -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-AESCIPHERALGORITHMS =
-
-# Possible signature algorithms for all algorithms
-
-# DSA signature algorithms
-# -DWITH_SIGN_DSA_SHA -DWITH_SIGN_ECDSA_SHA
-DSASIGNATUREALGORITHMS = -DWITH_SIGN_DSA_SHA
-
-# RSA signature algorithms
-# -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1 -DWITH_SIGN_RSA_SHA_ISO9796 \
-# -DWITH_SIGN_RSA_RIPEMD160_ISO9796 -DWITH_SIGN_RSA_RIPEMD160_PKCS1 \
-# -DWITH_SIGN_RSA_SHA_RFC2409 -DWITH_SIGN_RSA_MD5_RFC2409 -DWITH_SIGN_RSA_MD5_PKCS1_PSS \
-# -DWITH_SIGN_RSA_RIPEMD160_PKCS1_PSS -DWITH_SIGN_RSA_SHA_PKCS1_PSS
-RSASIGNATUREALGORITHMS = -DWITH_SIGN_RSA_SHA_PKCS1
-
-# DES signature algorithms
-# -DWITH_SIGN_DES_MAC4_NOPAD -DWITH_SIGN_DES_MAC4_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_M2 -DWITH_SIGN_DES_MAC4_PKCS5 \
-# -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC8_ISO9797_M2 -DWITH_SIGN_DES_MAC8_PKCS5 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_1_M2_ALG3 -DWITH_SIGN_DES_MAC8_ISO9797_1_M2_ALG3 \
-DESSIGNATUREALGORITHMS =
-
-# AES signature algorithms
-# -DWITH_AES_MAC_128_NOPAD
-AESSIGNATUREALGORITHMS =
-
-CPPFLAGS = ${FEATURES} ${RSAKEYLENGTHS} ${AESKEYLENGTHS} ${DSAKEYLENGTHS} ${RSACIPHERALGORITHMS} ${DESCIPHERALGORITHMS} ${AESCIPHERALGORITHMS} ${DSASIGNATUREALGORITHMS} ${RSASIGNATUREALGORITHMS} ${DESSIGNATUREALGORITHMS} ${AESSIGNATUREALGORITHMS}
View
74 CustomCapabilities.properties
@@ -1,74 +0,0 @@
-# Customize here, please
-
-# Selectively enable algorithms (what is disabled returns SW_UNSUPPORTED_FEATURE),
-# crypto operations and PIN policies.
-# FEATURES = -DWITH_DSA -DWITH_RSA -DWITH_DES -DWITH_3DES \
-# -DWITH_ENCRYPT -DWITH_SIGN -DWITH_EXT_AUTH \
-# -DWITH_PIN_POLICY -DWITH_KEY_POLICY -DWITH_AES -DWITH_JC22 -DWITH_GARBAGE_COLLECTION \
-# -DWITH_SERIAL -DWRITE_LABEL_ONCE \
-# -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT \
-# -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE
-FEATURES = -DWITH_RSA -DWITH_DES -DWITH_ENCRYPT -DWITH_SIGN -DWITH_KEY_POLICY -DWITH_AES -DWITH_JC22 -DWITH_GARBAGE_COLLECTION -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE -DWITH_EXT_APDU -DWITH_EXT_AUTH -DWITH_3DES -DWITH_PIN_POLICY
-
-
-# We must enable selectively enable supported key lengths, cipher and signatures algorithms
-
-# Possible key lengths for all algorithms
-
-# RSA
-# -DWITH_RSA_512 -DWITH_RSA_768 -DWITH_RSA_1024 -DWITH_RSA_2048
-RSAKEYLENGTHS = -DWITH_RSA_1024 -DWITH_RSA_2048
-
-# DSA
-# -DWITH_DSA_512 -DWITH_DSA_768 -DWITH_DSA_1024
-DSAKEYLENGTHS =
-
-# AES
-# -DWITH_AES_128 -DWITH_AES_192 -DWITH_AES_256
-AESKEYLENGTHS = -DWITH_AES_128
-
-# Possible cipher algorithms for all algorithms
-
-# RSA cipher algorithms
-# -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1 \
-# -DWITH_CIPHER_RSA_ISO9796 -DWITH_CIPHER_RSA_ISO14888 \
-# -DWITH_CIPHER_RSA_PKCS1_OAEP
-RSACIPHERALGORITHMS = -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1 -DWITH_CIPHER_RSA_PKCS1_OAEP -DWITH_CIPHER_RSA_ISO9796 -DWITH_CIPHER_RSA_ISO14888
-
-# DES cipher algorithms
-# -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD \
-# -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 \
-# -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 \
-# -DWITH_CIPHER_DES_CBC_PKCS5 -DWITH_CIPHER_DES_ECB_PKCS5
-DESCIPHERALGORITHMS = -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 -DWITH_CIPHER_DES_ECB_PKCS5
-
-# AES cipher algorithms
-# -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-AESCIPHERALGORITHMS = -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-
-# Possible signature algorithms for all algorithms
-
-# DSA signature algorithms
-# -DWITH_SIGN_DSA_SHA -DWITH_SIGN_ECDSA_SHA
-DSASIGNATUREALGORITHMS = -DWITH_SIGN_DSA_SHA
-
-# RSA signature algorithms
-# -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1 -DWITH_SIGN_RSA_SHA_ISO9796 \
-# -DWITH_SIGN_RSA_RIPEMD160_ISO9796 -DWITH_SIGN_RSA_RIPEMD160_PKCS1 \
-# -DWITH_SIGN_RSA_SHA_RFC2409 -DWITH_SIGN_RSA_MD5_RFC2409 -DWITH_SIGN_RSA_MD5_PKCS1_PSS \
-# -DWITH_SIGN_RSA_RIPEMD160_PKCS1_PSS -DWITH_SIGN_RSA_SHA_PKCS1_PSS
-RSASIGNATUREALGORITHMS = -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1
-
-# DES signature algorithms
-# -DWITH_SIGN_DES_MAC4_NOPAD -DWITH_SIGN_DES_MAC4_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_M2 -DWITH_SIGN_DES_MAC4_PKCS5 \
-# -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC8_ISO9797_M2 -DWITH_SIGN_DES_MAC8_PKCS5 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_1_M2_ALG3 -DWITH_SIGN_DES_MAC8_ISO9797_1_M2_ALG3 \
-DESSIGNATUREALGORITHMS = -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 -DWITH_SIGN_DES_MAC8_ISO9797_M2
-
-# AES signature algorithms
-# -DWITH_AES_MAC_128_NOPAD
-AESSIGNATUREALGORITHMS = -DWITH_AES_MAC_128_NOPAD
-
-CPPFLAGS = ${FEATURES} ${RSAKEYLENGTHS} ${AESKEYLENGTHS} ${DSAKEYLENGTHS} ${RSACIPHERALGORITHMS} ${DESCIPHERALGORITHMS} ${AESCIPHERALGORITHMS} ${DSASIGNATUREALGORITHMS} ${RSASIGNATUREALGORITHMS} ${DESSIGNATUREALGORITHMS} ${AESSIGNATUREALGORITHMS}
View
5 GD.properties
@@ -1,5 +0,0 @@
-JAVA_BUILD_HOME=${basedir}/depends/jdk
-JC_HOME=${basedir}/depends/jc22
-CARD_NAME=GD
-API_JAR=${JC_HOME}/lib/api.jar
-API_EXPORT_FILES=${JC_HOME}/api_export_files
View
72 GDCapabilities.properties
@@ -1,72 +0,0 @@
-# Customize here, please
-
-# Selectively enable algorithms (what is disabled returns SW_UNSUPPORTED_FEATURE),
-# crypto operations and PIN policies.
-# FEATURES = -DWITH_DSA -DWITH_RSA -DWITH_DES -DWITH_3DES \
-# -DWITH_ENCRYPT -DWITH_SIGN -DWITH_EXT_AUTH \
-# -DWITH_PIN_POLICY -DWITH_KEY_POLICY -DWITH_JC22 \
-# -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT \
-# -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE
-FEATURES = -DWITH_RSA -DWITH_DSA -DWITH_DES -DWITH_3DES -DWITH_JC22 -DWITH_AES -DWITH_SIGN -DWITH_ENCRYPT -DWITH_PIN_POLICY -DWITH_KEY_POLICY -DWITH_EXT_AUTH -DWITH_GARBAGE_COLLECTION -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE
-
-# We must enable selectively enable supported key lengths, cipher and signatures algorithms
-
-# Possible key lengths for all algorithms
-
-# RSA
-# -DWITH_RSA_512 -DWITH_RSA_768 -DWITH_RSA_1024 -DWITH_RSA_2048
-RSAKEYLENGTHS = -DWITH_RSA_1024
-
-# DSA
-# -DWITH_DSA_512 -DWITH_DSA_768 -DWITH_DSA_1024
-DSAKEYLENGTHS = -DWITH_DSA_1024
-
-# AES
-# -DWITH_AES_128 -DWITH_AES_192 -DWITH_AES_256
-AESKEYLENGTHS = -DWITH_AES_128 -DWITH_AES_192 -DWITH_AES_256
-
-# Possible cipher algorithms for all algorithms
-
-# RSA cipher algorithms
-# -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1 \
-# -DWITH_CIPHER_RSA_ISO9796 -DWITH_CIPHER_RSA_ISO14888 \
-# -DWITH_CIPHER_RSA_PKCS1_OAEP
-RSACIPHERALGORITHMS = -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1 -DWITH_CIPHER_RSA_PKCS1_OAEP -DWITH_CIPHER_RSA_ISO9796 -DWITH_CIPHER_RSA_ISO14888
-
-# DES cipher algorithms
-# -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD \
-# -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 \
-# -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 \
-# -DWITH_CIPHER_DES_CBC_PKCS5 -DWITH_CIPHER_DES_ECB_PKCS5
-DESCIPHERALGORITHMS = -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 -DWITH_CIPHER_DES_ECB_PKCS5
-
-# AES cipher algorithms
-# -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-AESCIPHERALGORITHMS = -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-
-# Possible signature algorithms for all algorithms
-
-# DSA signature algorithms
-# -DWITH_SIGN_DSA_SHA -DWITH_SIGN_ECDSA_SHA
-DSASIGNATUREALGORITHMS = -DWITH_SIGN_DSA_SHA
-
-# RSA signature algorithms
-# -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1 -DWITH_SIGN_RSA_SHA_ISO9796 \
-# -DWITH_SIGN_RSA_RIPEMD160_ISO9796 -DWITH_SIGN_RSA_RIPEMD160_PKCS1 \
-# -DWITH_SIGN_RSA_SHA_RFC2409 -DWITH_SIGN_RSA_MD5_RFC2409 -DWITH_SIGN_RSA_MD5_PKCS1_PSS \
-# -DWITH_SIGN_RSA_RIPEMD160_PKCS1_PSS -DWITH_SIGN_RSA_SHA_PKCS1_PSS
-RSASIGNATUREALGORITHMS = -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1 -DWITH_SIGN_RSA_SHA_ISO9796 -DWITH_SIGN_RSA_RIPEMD160_ISO9796 -DWITH_SIGN_RSA_RIPEMD160_PKCS1 -DWITH_SIGN_RSA_SHA_RFC2409 -DWITH_SIGN_RSA_MD5_RFC2409 -DWITH_SIGN_RSA_MD5_PKCS1_PSS -DWITH_SIGN_RSA_RIPEMD160_PKCS1_PSS -DWITH_SIGN_RSA_SHA_PKCS1_PSS
-
-# DES signature algorithms
-# -DWITH_SIGN_DES_MAC4_NOPAD -DWITH_SIGN_DES_MAC4_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_M2 -DWITH_SIGN_DES_MAC4_PKCS5 \
-# -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC8_ISO9797_M2 -DWITH_SIGN_DES_MAC8_PKCS5 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_1_M2_ALG3 -DWITH_SIGN_DES_MAC8_ISO9797_1_M2_ALG3 \
-DESSIGNATUREALGORITHMS = -DWITH_SIGN_DES_MAC4_NOPAD -DWITH_SIGN_DES_MAC4_ISO9797_M1 -DWITH_SIGN_DES_MAC4_ISO9797_M2 -DWITH_SIGN_DES_MAC4_PKCS5 -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 -DWITH_SIGN_DES_MAC8_ISO9797_M2 -DWITH_SIGN_DES_MAC8_PKCS5 -DWITH_SIGN_DES_MAC4_ISO9797_1_M2_ALG3 -DWITH_SIGN_DES_MAC8_ISO9797_1_M2_ALG3
-
-# AES signature algorithms
-# -DWITH_SIGN_AES_MAC_128_NOPAD
-AESSIGNATUREALGORITHMS = -DWITH_SIGN_AES_MAC_128_NOPAD
-
-CPPFLAGS = ${FEATURES} ${RSAKEYLENGTHS} ${AESKEYLENGTHS} ${DSAKEYLENGTHS} ${RSACIPHERALGORITHMS} ${DESCIPHERALGORITHMS} ${AESCIPHERALGORITHMS} ${DSASIGNATUREALGORITHMS} ${RSASIGNATUREALGORITHMS} ${DESSIGNATUREALGORITHMS} ${AESSIGNATUREALGORITHMS}
View
5 JCOP.properties
@@ -1,5 +0,0 @@
-CARD_NAME=JCOP
-JAVA_BUILD_HOME=${basedir}/depends/jdk
-JC_HOME=${basedir}/depends/jc221
-API_JAR=${JC_HOME}/lib/api.jar
-API_EXPORT_FILES=${JC_HOME}/api_export_files
View
77 JCOPCapabilities.properties
@@ -1,77 +0,0 @@
-# Customize here, please
-
-# Selectively enable algorithms (what is disabled returns SW_UNSUPPORTED_FEATURE),
-# crypto operations and PIN policies.
-# FEATURES = -DWITH_DSA -DWITH_RSA -DWITH_DES -DWITH_3DES -DWITH_EC \
-# -DWITH_ENCRYPT -DWITH_SIGN -DWITH_EXT_AUTH \
-# -DWITH_PIN_POLICY -DWITH_KEY_POLICY -DWITH_AES -DWITH_JC22 -DWITH_GARBAGE_COLLECTION \
-# -DWITH_SERIAL -DWRITE_LABEL_ONCE \
-# -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT \
-# -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE
-FEATURES = -DWITH_RSA -DWITH_EC -DWITH_AES -DWITH_SIGN -DWITH_ENCRYPT -DWITH_JC22 -DWITH_DES -DWITH_SERIAL -DWITH_SET_STATE -DWITH_DELETE_ID -DWITH_MOVE_KEY -DWITH_MOVE_OBJECT -DWITH_CHANGE_ACL -DWITH_DELETE_KEY -DWITH_GET_CHALLENGE
-
-# We must enable selectively enable supported key lengths, cipher and signatures algorithms
-
-# Possible key lengths for all algorithms
-
-# RSA
-# -DWITH_RSA_512 -DWITH_RSA_768 -DWITH_RSA_1024 -DWITH_RSA_2048
-RSAKEYLENGTHS = -DWITH_RSA_1024 -DWITH_RSA_2048
-
-# DSA
-# -DWITH_DSA_512 -DWITH_DSA_768 -DWITH_DSA_1024
-DSAKEYLENGTHS = -DWITH_DSA_1024
-
-# EC
-# -DWITH_EC_FP_112 -DWITH_EC_F2M_113 -DWITH_EC_FP_128 -DWITH_EC_F2M_131 -DWITH_EC_FP_160 -DWITH_EC_F2M_163 -DWITH_EC_FP_192 -DWITH_EC_F2M_193
-ECKEYLENGTHS = -DWITH_EC_FP_112 -DWITH_EC_F2M_113 -DWITH_EC_FP_128 -DWITH_EC_F2M_131 -DWITH_EC_FP_160 -DWITH_EC_F2M_163 -DWITH_EC_FP_192 -DWITH_EC_F2M_193
-
-# AES
-# -DWITH_AES_128 -DWITH_AES_192 -DWITH_AES_256
-AESKEYLENGTHS = -DWITH_AES_128 -DWITH_AES_192 -DWITH_AES_256
-
-# Possible cipher algorithms for all algorithms
-
-# RSA cipher algorithms
-# -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1 \
-# -DWITH_CIPHER_RSA_ISO9796 -DWITH_CIPHER_RSA_ISO14888 \
-# -DWITH_CIPHER_RSA_PKCS1_OAEP
-RSACIPHERALGORITHMS = -DWITH_CIPHER_RSA_NOPAD -DWITH_CIPHER_RSA_PKCS1
-
-# DES cipher algorithms
-# -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD \
-# -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 \
-# -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 \
-# -DWITH_CIPHER_DES_CBC_PKCS5 -DWITH_CIPHER_DES_ECB_PKCS5
-DESCIPHERALGORITHMS = -DWITH_CIPHER_DES_CBC_NOPAD -DWITH_CIPHER_DES_ECB_NOPAD -DWITH_CIPHER_DES_CBC_ISO9797_M1 -DWITH_CIPHER_DES_CBC_ISO9797_M2 -DWITH_CIPHER_DES_ECB_ISO9797_M1 -DWITH_CIPHER_DES_ECB_ISO9797_M2 -DWITH_CIPHER_DES_ECB_PKCS5
-
-# AES cipher algorithms
-# -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-AESCIPHERALGORITHMS = -DWITH_CIPHER_AES_BLOCK_128_CBC_NOPAD -DWITH_CIPHER_AES_BLOCK_128_ECB_NOPAD
-
-# Possible signature algorithms for all algorithms
-
-# DSA signature algorithms
-# -DWITH_SIGN_DSA_SHA -DWITH_SIGN_ECDSA_SHA
-DSASIGNATUREALGORITHMS = -DWITH_SIGN_ECDSA_SHA
-
-# RSA signature algorithms
-# -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1 -DWITH_SIGN_RSA_SHA_ISO9796 \
-# -DWITH_SIGN_RSA_RIPEMD160_ISO9796 -DWITH_SIGN_RSA_RIPEMD160_PKCS1 \
-# -DWITH_SIGN_RSA_SHA_RFC2409 -DWITH_SIGN_RSA_MD5_RFC2409 -DWITH_SIGN_RSA_MD5_PKCS1_PSS \
-# -DWITH_SIGN_RSA_RIPEMD160_PKCS1_PSS -DWITH_SIGN_RSA_SHA_PKCS1_PSS
-RSASIGNATUREALGORITHMS = -DWITH_SIGN_RSA_MD5_PKCS1 -DWITH_SIGN_RSA_SHA_PKCS1
-
-# DES signature algorithms
-# -DWITH_SIGN_DES_MAC4_NOPAD -DWITH_SIGN_DES_MAC4_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_M2 -DWITH_SIGN_DES_MAC4_PKCS5 \
-# -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 \
-# -DWITH_SIGN_DES_MAC8_ISO9797_M2 -DWITH_SIGN_DES_MAC8_PKCS5 \
-# -DWITH_SIGN_DES_MAC4_ISO9797_1_M2_ALG3 -DWITH_SIGN_DES_MAC8_ISO9797_1_M2_ALG3 \
-DESSIGNATUREALGORITHMS = -DWITH_SIGN_DES_MAC8_NOPAD -DWITH_SIGN_DES_MAC8_ISO9797_M1 -DWITH_SIGN_DES_MAC8_ISO9797_M2
-
-# AES signature algorithms
-# -DWITH_AES_MAC_128_NOPAD
-AESSIGNATUREALGORITHMS = -DWITH_AES_MAC_128_NOPAD
-
-CPPFLAGS = ${FEATURES} ${RSAKEYLENGTHS} ${AESKEYLENGTHS} ${DSAKEYLENGTHS} ${RSACIPHERALGORITHMS} ${DESCIPHERALGORITHMS} ${AESCIPHERALGORITHMS} ${DSASIGNATUREALGORITHMS} ${RSASIGNATUREALGORITHMS} ${DESSIGNATUREALGORITHMS} ${AESSIGNATUREALGORITHMS} ${ECKEYLENGTHS}
View
2 Custom.properties → Local.properties
@@ -3,3 +3,5 @@ JC_HOME=${basedir}/depends/jc222
CARD_NAME=Custom
API_JAR=${JC_HOME}/lib/api.jar
API_EXPORT_FILES=${JC_HOME}/api_export_files
+# Required for Cyberflex cards
+# CAPTRANS=${basedir}/depends/captransf.jar
View
211 build.xml
@@ -1,55 +1,156 @@
-<?xml version="1.0"?>
-
-<project default="Custom" name="MCardApplet" basedir=".">
- <target name="all" depends="Cflex,JCOP,GD,Custom"/>
- <target name="clean" depends="Cflex-Clean,JCOP-Clean,GD-Clean,Custom-Clean"/>
-
- <target name="Cflex">
- <ant antfile="common.xml" target="makeTransformedIJC">
- <property file="Cflex.properties"/>
- </ant>
- </target>
-
- <target name="Cflex-Clean">
- <ant antfile="common.xml" target="clean">
- <property file="Cflex.properties"/>
- </ant>
- </target>
-
- <target name="JCOP">
- <ant antfile="common.xml">
- <property file="JCOP.properties"/>
- </ant>
- </target>
-
- <target name="JCOP-Clean">
- <ant antfile="common.xml" target="clean">
- <property file="JCOP.properties"/>
- </ant>
- </target>
-
- <target name="GD">
- <ant antfile="common.xml">
- <property file="GD.properties"/>
- </ant>
- </target>
-
- <target name="GD-Clean">
- <ant antfile="common.xml" target="clean">
- <property file="GD.properties"/>
- </ant>
- </target>
-
- <target name="Custom">
- <ant antfile="common.xml">
- <property file="Custom.properties"/>
- </ant>
- </target>
-
- <target name="Custom-Clean">
- <ant antfile="common.xml" target="clean">
- <property file="Custom.properties"/>
- </ant>
- </target>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="makeIJC" name="MCardApplet common tasks">
+ <property name="VM_SOURCE_VERSION" value="1.2"/>
+ <property name="VM_TARGET_VERSION" value="1.1"/>
+
+ <property file="Local.properties"/>
+ <!-- The version information -->
+ <property file="version.properties"/>
+ <!-- The output directory of the compiled files, the CAP, the IJC file, ... -->
+ <property name="OUTPUT_DIR" value="./output"/>
+ <!-- Necessary parameters for the applet -->
+ <!-- Name of Java Card Applet -->
+ <property name="CARD_NAME" value="JavaCard"/>
+ <property name="JAVA_APPLET" value="CardEdge"/>
+ <!-- Package into which Applet resides -->
+ <property name="JAVA_PACKAGE" value="com.musclecard.${JAVA_APPLET}"/>
+ <!-- Same as above . replaced by / -->
+ <property name="JAVA_PACKAGE_DIR" value="com/musclecard/${JAVA_APPLET}"/>
+ <!-- The applet name -->
+ <property name="APPLET_NAME" value="CardEdge"/>
+ <!-- The source directory of the applet -->
+ <property name="APPLET_SRC" value="./src/${JAVA_PACKAGE_DIR}"/>
+ <!-- The package name -->
+ <property name="PACKAGE_NAME" value="${JAVA_PACKAGE}"/>
+ <!--The AID of the package -->
+ <!-- <property name="PACKAGE_AID" value="0xA0:00:00:03:0x23:01"/> -->
+ <property name="PACKAGE_AID" value="0xA0:00:00:00:01"/>
+ <!-- The major and minor version of the package -->
+ <property name="VERSION" value="${APPLET_VERSION_MAJOR}.${APPLET_VERSION_MINOR}"/>
+ <!-- The applet AID of the applet -->
+ <property name="APPLET_AID" value="${PACKAGE_AID}:01"/>
+ <!-- The unpackaged name of the package, i.e. the dots replaced by file separators -->
+ <property name="PACKAGE_NAME_UNPACKAGED" value="${JAVA_PACKAGE_DIR}"/>
+ <target name="compile">
+ <mkdir dir="${OUTPUT_DIR}"/>
+ <javac debug="on" verbose="on" fork="true" executable="${JAVA_BUILD_HOME}/bin/javac" srcdir="${APPLET_SRC}" destdir="${OUTPUT_DIR}" target="${VM_TARGET_VERSION}" source="${VM_SOURCE_VERSION}">
+ <classpath>
+ <pathelement location="${API_JAR}"/>
+ <pathelement location="."/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </javac>
+ </target>
+ <target depends="compile" name="convert">
+ <java classname="com.sun.javacard.converter.Converter" fork="true" failonerror="true">
+ <arg line="-classdir '${OUTPUT_DIR}' -verbose -exportpath '${API_EXPORT_FILES}' -out CAP JCA EXP -applet ${APPLET_AID} ${APPLET_NAME} ${PACKAGE_NAME} ${PACKAGE_AID} ${VERSION}"/>
+ <classpath>
+ <pathelement location="${JC_HOME}/lib/converter.jar"/>
+ <pathelement location="${JC_HOME}/lib/offcardverifier.jar"/>
+ <pathelement location="."/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+ <target depends="convert" name="capgen">
+ <java classname="com.sun.javacard.jcasm.cap.Main" fork="true" failonerror="true">
+ <arg value="-o${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.jar"/>
+ <arg value="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.jca"/>
+ <classpath>
+ <pathelement location="${JC_HOME}/lib/converter.jar"/>
+ <pathelement location="${JC_HOME}/lib/offcardverifier.jar"/>
+ <pathelement location="."/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+ <target depends="capgen" name="verify">
+ <java classname="com.sun.javacard.offcardverifier.Verifier" fork="true" failonerror="true">
+ <arg line="-verbose ${API_EXPORT_FILES}/java/lang/javacard/lang.exp ${API_EXPORT_FILES}/javacard/framework/javacard/framework.exp ${API_EXPORT_FILES}/javacardx/crypto/javacard/crypto.exp ${API_EXPORT_FILES}/javacard/security/javacard/security.exp ${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.exp ${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap"/>
+ <classpath>
+ <pathelement location="${JC_HOME}/lib/offcardverifier.jar"/>
+ <pathelement location="."/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+ </java>
+ </target>
+ <target depends="convert" description="Makes an IJC file" name="makeTransformedIJC">
+ <java jar="${CAPTRANS}" fork="true" failonerror="true">
+ <arg line="${API_EXPORT_FILES}/javacard/framework/javacard/framework.exp ${API_EXPORT_FILES}/javacard/security/javacard/security.exp ${API_EXPORT_FILES}/java/lang/javacard/lang.exp ${API_EXPORT_FILES}/javacardx/crypto/javacard/crypto.exp -s -noint ${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap"/>
+ </java>
+ <move file="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap.transf" tofile="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap"/>
+ <unjar src="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap" dest="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard"/>
+ <concat binary="true" destfile="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}${CARD_NAME}.ijc">
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Header.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Directory.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Import.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Applet.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Class.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Method.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="StaticField.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="ConstantPool.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="RefLocation.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Descriptor.cap"/>
+ </fileset>
+ </concat>
+ </target>
+ <target depends="convert" description="Makes an IJC file" name="makeIJC">
+ <unjar src="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap" dest="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard"/>
+ <concat binary="true" destfile="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}${CARD_NAME}.ijc">
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Header.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Directory.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Import.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Applet.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Class.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Method.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="StaticField.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="ConstantPool.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="RefLocation.cap"/>
+ </fileset>
+ <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
+ <include name="Descriptor.cap"/>
+ </fileset>
+ </concat>
+ </target>
+ <target description="Cleans up." name="clean">
+ <delete includeEmptyDirs="true">
+ <fileset dir="${OUTPUT_DIR}"/>
+ </delete>
+ </target>
+</project>
View
168 common.xml
@@ -1,168 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." default="makeIJC" name="MCardApplet common tasks">
- <property name="CPP" value="cpp-4.0"/> <!-- OS X 10.6 cpp does not work, need to use cpp-4.x-->
- <property name="VM_SOURCE_VERSION" value="1.2"/>
- <property name="VM_TARGET_VERSION" value="1.1"/>
-
- <property file="${CARD_NAME}Capabilities.properties"/>
- <!-- The version information -->
- <property file="version.properties"/>
- <!-- The output directory of the compiled files, the CAP, the IJC file, ... -->
- <property name="OUTPUT_DIR" value="./${CARD_NAME}"/>
- <!-- Necessary parameters for the applet -->
- <!-- Name of Java Card Applet -->
- <property name="JAVA_APPLET" value="CardEdge"/>
- <!-- Package into which Applet resides -->
- <property name="JAVA_PACKAGE" value="com.musclecard.${JAVA_APPLET}"/>
- <!-- Same as above . replaced by / -->
- <property name="JAVA_PACKAGE_DIR" value="com/musclecard/${JAVA_APPLET}"/>
- <!-- The applet name -->
- <property name="APPLET_NAME" value="CardEdge"/>
- <!-- The source directory of the applet -->
- <property name="APPLET_SRC" value="./src/${JAVA_PACKAGE_DIR}"/>
- <!-- The package name -->
- <property name="PACKAGE_NAME" value="${JAVA_PACKAGE}"/>
- <!--The AID of the package -->
- <!-- <property name="PACKAGE_AID" value="0xA0:00:00:03:0x23:01"/> -->
- <property name="PACKAGE_AID" value="0xA0:00:00:00:01"/>
- <!-- The major and minor version of the package -->
- <property name="VERSION" value="${APPLET_VERSION_MAJOR}.${APPLET_VERSION_MINOR}"/>
- <!-- The applet AID of the applet -->
- <property name="APPLET_AID" value="${PACKAGE_AID}:01"/>
- <!-- The unpackaged name of the package, i.e. the dots replaced by file separators -->
- <property name="PACKAGE_NAME_UNPACKAGED" value="${JAVA_PACKAGE_DIR}"/>
- <target name="precompile">
- <mkdir dir="${OUTPUT_DIR}"/>
- <exec executable="${CPP}" dir="${APPLET_SRC}" failonerror="true">
- <arg line="${CPPFLAGS} -DJAVA_PACKAGE=${JAVA_PACKAGE} -DJAVA_APPLET=${JAVA_APPLET} -DAPPLET_VERSION_MAJOR=${APPLET_VERSION_MAJOR} -DAPPLET_VERSION_MINOR=${APPLET_VERSION_MINOR} -DPROTO_VERSION_MAJOR=${PROTO_VERSION_MAJOR} -DPROTO_VERSION_MINOR=${PROTO_VERSION_MINOR} -P -C -o CardEdge.java CardEdge.src"/>
- </exec>
- <exec executable="${CPP}" dir="${APPLET_SRC}" failonerror="true">
- <arg line="${CPPFLAGS} -DJAVA_PACKAGE=${JAVA_PACKAGE} -DJAVA_APPLET=${JAVA_APPLET} -DAPPLET_VERSION_MAJOR=${APPLET_VERSION_MAJOR} -DAPPLET_VERSION_MINOR=${APPLET_VERSION_MINOR} -DPROTO_VERSION_MAJOR=${PROTO_VERSION_MAJOR} -DPROTO_VERSION_MINOR=${PROTO_VERSION_MINOR} -P -C -o MemoryManager.java MemoryManager.src"/>
- </exec>
- <exec executable="${CPP}" dir="${APPLET_SRC}" failonerror="true">
- <arg line="${CPPFLAGS} -DJAVA_PACKAGE=${JAVA_PACKAGE} -DJAVA_APPLET=${JAVA_APPLET} -DAPPLET_VERSION_MAJOR=${APPLET_VERSION_MAJOR} -DAPPLET_VERSION_MINOR=${APPLET_VERSION_MINOR} -DPROTO_VERSION_MAJOR=${PROTO_VERSION_MAJOR} -DPROTO_VERSION_MINOR=${PROTO_VERSION_MINOR} -P -C -o ObjectManager.java ObjectManager.src"/>
- </exec>
- </target>
- <target depends="precompile" name="compile">
- <mkdir dir="${OUTPUT_DIR}"/>
- <javac debug="on" verbose="on" fork="true" executable="${JAVA_BUILD_HOME}/bin/javac" srcdir="${APPLET_SRC}" destdir="${OUTPUT_DIR}" target="${VM_TARGET_VERSION}" source="${VM_SOURCE_VERSION}">
- <classpath>
- <pathelement location="${API_JAR}"/>
- <pathelement location="."/>
- <pathelement path="${java.class.path}"/>
- </classpath>
- </javac>
- </target>
- <target depends="compile" name="convert">
- <java classname="com.sun.javacard.converter.Converter" fork="true" failonerror="true">
- <arg line="-classdir '${OUTPUT_DIR}' -verbose -exportpath '${API_EXPORT_FILES}' -out CAP JCA EXP -applet ${APPLET_AID} ${APPLET_NAME} ${PACKAGE_NAME} ${PACKAGE_AID} ${VERSION}"/>
- <classpath>
- <pathelement location="${JC_HOME}/lib/converter.jar"/>
- <pathelement location="${JC_HOME}/lib/offcardverifier.jar"/>
- <pathelement location="."/>
- <pathelement path="${java.class.path}"/>
- </classpath>
- </java>
- </target>
- <target depends="convert" name="capgen">
- <java classname="com.sun.javacard.jcasm.cap.Main" fork="true" failonerror="true">
- <arg value="-o${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.jar"/>
- <arg value="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.jca"/>
- <classpath>
- <pathelement location="${JC_HOME}/lib/converter.jar"/>
- <pathelement location="${JC_HOME}/lib/offcardverifier.jar"/>
- <pathelement location="."/>
- <pathelement path="${java.class.path}"/>
- </classpath>
- </java>
- </target>
- <target depends="capgen" name="verify">
- <java classname="com.sun.javacard.offcardverifier.Verifier" fork="true" failonerror="true">
- <arg line="-verbose ${API_EXPORT_FILES}/java/lang/javacard/lang.exp ${API_EXPORT_FILES}/javacard/framework/javacard/framework.exp ${API_EXPORT_FILES}/javacardx/crypto/javacard/crypto.exp ${API_EXPORT_FILES}/javacard/security/javacard/security.exp ${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.exp ${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap"/>
- <classpath>
- <pathelement location="${JC_HOME}/lib/offcardverifier.jar"/>
- <pathelement location="."/>
- <pathelement path="${java.class.path}"/>
- </classpath>
- </java>
- </target>
- <target depends="convert" description="Makes an IJC file" name="makeTransformedIJC">
- <java jar="${CAPTRANS}" fork="true" failonerror="true">
- <arg line="${API_EXPORT_FILES}/javacard/framework/javacard/framework.exp ${API_EXPORT_FILES}/javacard/security/javacard/security.exp ${API_EXPORT_FILES}/java/lang/javacard/lang.exp ${API_EXPORT_FILES}/javacardx/crypto/javacard/crypto.exp -s -noint ${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap"/>
- </java>
- <move file="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap.transf" tofile="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap"/>
- <unjar src="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap" dest="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard"/>
- <concat binary="true" destfile="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}${CARD_NAME}.ijc">
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Header.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Directory.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Import.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Applet.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Class.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Method.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="StaticField.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="ConstantPool.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="RefLocation.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Descriptor.cap"/>
- </fileset>
- </concat>
- </target>
- <target depends="convert" description="Makes an IJC file" name="makeIJC">
- <unjar src="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}.cap" dest="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard"/>
- <concat binary="true" destfile="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${APPLET_NAME}${CARD_NAME}.ijc">
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Header.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Directory.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Import.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Applet.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Class.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Method.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="StaticField.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="ConstantPool.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="RefLocation.cap"/>
- </fileset>
- <fileset dir="${OUTPUT_DIR}/${PACKAGE_NAME_UNPACKAGED}/javacard/${PACKAGE_NAME_UNPACKAGED}/javacard">
- <include name="Descriptor.cap"/>
- </fileset>
- </concat>
- </target>
- <target description="Cleans up." name="clean">
- <delete includeEmptyDirs="true">
- <fileset dir="${OUTPUT_DIR}"/>
- </delete>
- </target>
-</project>

0 comments on commit 2cd662d

Please sign in to comment.
Something went wrong with that request. Please try again.