Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Re: Help: Analyse PUT KEY apdu? (Part 2)

hoaibaotreOct 27 2011 — edited Nov 1 2011
Hi all,
JDL said "the key must be encrypted by the KEK key but the option is that the whole data in the PUT KEY can be encrypted or not depending on the security level we set at the earlier stage."
So in *1st stage* (1st time), which KEY will be use to encrypt data in the PUT KEY?
(Maybe, the default key +40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F+ )

So, we know, KEY DATA FIELD is structured:
80 D8 00 81 43 // header
03 // key version
80 10 50D282EFC4240AEBBD85ADE1F771EDA2 03 8BAF47 // key 1 (type size key and kcv)
80 10 50D282EFC4240AEBBD85ADE1F771EDA2 03 8BAF47 // key 2 (type size key and kcv)
80 10 50D282EFC4240AEBBD85ADE1F771EDA2 03 8BAF47 // key 3 (type size key and kcv)
1) When I decrypted value "+50D282EFC4240AEBBD85ADE1F771EDA2+" by DES_ECB algorithm with default key "40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F"

then I receive the data not the same with "40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F" (as I wished).

2) How can I check KCV? (Is key check value the first 3 bytes of 3DES ? I decrypted by 3DES algorithm with key "40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F" but I can't see any value like *"8B AF 47"*)

Thanks,
HoaND
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2011
Added on Oct 27 2011
14 comments
820 views