Search found 18 matches
- Thu Dec 07, 2017 11:52 pm
- Forum: Applets Development Guide
- Topic: Javacard kit 3.0.4 & crypto algorithm
- Replies: 2
- Views: 10888
Re: Javacard kit 3.0.4 & crypto algorithm
For signature builder call Signature. getInstance (MessageDigest. ALG_NULL, Signature. SIG_CIPHER_ECDSA, Cipher. PAD_NULL, false); infact , it is failed as expected, since ECDSA is signature standard specified In ANSI X9.62-1998, for this scheme, only message digest and Private key are needed withou...
- Tue Nov 21, 2017 5:23 am
- Forum: Questions & Answers
- Topic: Error 68 81 when sending apdu(BFDEP1P2..)to card
- Replies: 6
- Views: 20961
Re: Error 68 81 when sending apdu(BFDEP1P2..)to card
Maybe you should select your applet again on logical channel 3 again,
03 A4 04 00 XXXXX
then send the command and check if SW is still 6D00
03 A4 04 00 XXXXX
then send the command and check if SW is still 6D00
- Tue Nov 21, 2017 5:19 am
- Forum: Reader
- Topic: The Square card reader
- Replies: 2
- Views: 22603
Re: The Square card reader
maybe your card has been locked, you can get help from cad issuer, such as bank or credit card company.
- Tue Nov 21, 2017 5:08 am
- Forum: Questions & Answers
- Topic: Geting Error on getIncomingLength() and getOffsetCdata()
- Replies: 2
- Views: 7269
Re: Geting Error on getIncomingLength() and getOffsetCdata()
You should add following statement at beginning of your code:
import javacard.framework.*;
Try it
import javacard.framework.*;
Try it
- Tue Nov 21, 2017 5:01 am
- Forum: Questions & Answers
- Topic: des cbc with PKCS5 issue
- Replies: 1
- Views: 5365
Re: des cbc with PKCS5 issue
For the 1st problem, ALG_DES_CBC_PKCS5 is not supported on older vesion javacard or JCOP. but the scheme is so simple, you can implement it by yourself combining ALG_DES_CBC_NOPAD and simple pad alg. for example, if 3 bytes to be needed to block align in the last block, so just pad it with 3 0x33, e...
- Tue Oct 10, 2017 2:11 am
- Forum: PKIApplet
- Topic: Result signature between signature from Applet and Java code
- Replies: 1
- Views: 18725
Re: Result signature between signature from Applet and Java code
Signature sig = Signature.getInstance("Sha1WithRSA"); where alg name 'shawithRSA" is ambitious, i 've gone through the java API spec. 'shawithRSA" only indicates that PKCS#1 is used, however, PKCS#1 is comprised of Padding (PSS, Vi5 and OAEP), cipher primitives, but they are desc...
- Tue Oct 10, 2017 1:35 am
- Forum: Questions & Answers
- Topic: How to use jsr177 to access smart card
- Replies: 3
- Views: 7650
Re: How to use jsr177 to access smart card
please show us more info about jsr177, URL or other way that we can download it.
- Tue Oct 10, 2017 1:30 am
- Forum: Questions & Answers
- Topic: Static analysis and code optimisation
- Replies: 1
- Views: 5774
Re: Static analysis and code optimisation
Unfortunately , there is not special tool to do that. some issues should be considered on javacard although java language is used to develop , such as limited memory, byte codes supported and transaction performance, which lead to most design patterns (e.g. factory module) or object oriented nethods...