DES security in javacard test

Hello.

I have a simple question.

I 'm testing with apdutools and jcwde from SUN an applet that uses security and crypto pakages from javacard 2.2.1.

try

{

desKey = (DESKey)KeyBuilder.buildKey(KeyBuilder.TYPE_DES, (short)8, false);

desKey.setKey(keyBits, (short)0);

cipher = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M2, false);

cipher.init(desKey, Cipher.MODE_ENCRYPT);

count = cipher.doFinal(balanceD, (short)0, (short)balanceD.length, balanceB, (short)0);

}

This code throws a CryptoException, "NO_SUCH_ALGORITH".

What types of cripto algorithms are implemented?

Can I test something without a phisical card, only via software?

Thanks

[733 byte] By [SamaeLa] at [2007-11-26 18:24:27]
# 1

I do not know much about the JCWDE toolkit from Sun, so I cannot help you there. Regarding your last question: Yes there are emulators (HW) and simulators (SW) out there. I recommend the JCOP Tools simulator, where you can debug line by line and evaluate the variables and java card byte code. The simulator is generic (JCOP41/72/B1 v2.2). If you're an NXP customer you can obtain simulations for all the JCOP products.

lexdabeara at 2007-7-9 5:58:31 > top of Java-index,Java Mobility Forums,Consumer and Commerce...