Ok, thanks that worked out grate!!! :) I replaced the X's with 0 and everything worked out fine.

But of course I have encountered another problem in the Cryptoflex PG guide [1]
(Chap. 5 Writing an Card Application.), And I don't understand what
they mean and are in need of some pointers,I'm on page 228. [1]
CLA INS P1 P2 Lc Data
14 40 00 00 40 Message = [64 x k+1 -- 64 x (k+1)]
NOTE: You must enter the message data in little-endian format (LSB first)
What do they mean by that?


So on page 229, Step 12 Sign the Hash
             Data
Step 2,  padded hash (1-128Bytes), what do they mean by this, and
           Data
Step 3,   Signature (1-128Byts)

So what I need to know, and understand is what to fill in at Message, padded hash, and signature
I don't know much about hash, so spell it out for me...


[1] http://www.cryptoflex.com/Support/Documentation/CryptoflexPG_4-5.pdf

Thanks for the help,
Cheers,
Kevin
Norway

--On Thursday, July 08, 2004 02:08:09 +0200 "Kevin Andre Vatn."
<[EMAIL PROTECTED]> wrote:

> cards [1]. I'm following the guide in Chap. 5  Writing an Card
> Application. A tutorial of some sort. But when I come to 'Create the CHV1
> File' on page 213, I'm a little lost... to say at least. It reads that I
> should run the following apdu command to create the (reserved file ID
> 0000) file. apdu command:
> CLA    INS   P1  P2  LC   Data
> F0     E0    00  01  10   FFFF 0017 0000 01 00 F4FF44 01 03 X2XX22


You should probably review the relevant reference documentation as well Create File command (P 97-104) describes what the bytes in the data part of a CREATE FILE command mean and how to interpret and construct them.

Bytes 9-11 (F4FF44) and 14-16 (X2XX22) are the access control bits. Bytes
The first set controls what kind of AC (a pin, a key, or a fixed ac), and
the second set is a key number for the ac types that need one.
The nibble '4' means AUT. the AUT AC is satisfied when if the appropriate
key has been validated using the VERIFY KEY command.
The nibble 'F' means NEVR (or NEVER), an AC that can never be satisfied. a
NEVR AC does not need a key number and so the example uses X to mean "it
doesn't matter what this value is" (this sort of thing is called a "don't
care")
Substitute 0's for the X's and you will be fine.


_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to