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!

Secure messaging & chaining response

858245Jul 18 2011 — edited Jul 22 2011
I made one step a head but still I am having the problem. As you will see, I am returning the data 87 L87 01 cryptogram 97 02 99 00 8E 08 mac in two chains. At the off-card side, the MAC calculation was successful. I checked both sides and both sides share the same mac and encryption key. The decryption phase on the off-card side did not finish as I desire as you can see bellow. At the first sight, the decrypted data message looks strange. The encrypted data length is 264. How it is possible that the decrypted data length is 260. What do you think it is wrong? Am I missing something?

18.07.2011 16:06:28.030 - APDU - Response
87 82 01 09 01 6F 72 C2 DD 55 A2 EF 8C 6D C1 EE
9D 9F 5A 20 15 CE 8B 38 47 62 FB 8B D3 9C 1B 36
57 0F E9 96 23 FE 4B FF F2 A7 6D 21 7D BF 64 09
4F D6 12 7F B3 74 47 64 C7 26 AD 21 06 2C 47 C7
2F 1F C3 A4 DF AD 87 C2 32 11 CE 03 F0 10 55 14
52 53 A5 D4 19 D6 8E 8A 6B D1 0D 7E 74 19 5F 82
B3 23 5B 36 F8 87 B2 5C AB 88 E3 F5 01 2D 29 5D
8D 57 06 2C 17 55 1D 7D 29 03 C4 E6 EB 56 8A FD
29 58 AC 88 D2 F1 6C 32 3B BF F3 3D 95 4C F2 FF
DA 7C E9 08 57 10 B1 D7 4F 51 F4 57 C1 FF D5 E7
BC 7C 75 34 8D DB 76 E0 A1 DC 15 12 72 62 06 7C
36 A1 E2 21 90 EA C6 69 5D 7E 9E 7F A7 B4 17 4B
4B 5E 3D E8 92 92 1B AE B2 71 A7 E1 74 7A B5 FF
5F B5 BB 0F 52 29 59 E2 8C 64 B5 95 7E 16 3B B9
C3 7F DB 04 15 E4 A3 BF BD AF 80 36 CB E1 2B FA
2C 26 AC 86 14 F9 34 9A F8 ED 9D A0 EB 9E 3E
[611C]
18.07.2011 16:06:28.040 - MESSAGE - Beginning of S_GetResponse
18.07.2011 16:06:28.040 - APDU - Command GET Response :
00 C0 00 00 1C
18.07.2011 16:06:28.090 - APDU - Response
46 0E F9 A1 43 DF 76 EE C2 5F FC AB 25 72 99 02
90 00 8E 08 8E D9 F1 A6 91 88 A4 D7
[9000]
18.07.2011 16:06:28.090 - MESSAGE - End of S_InternalAuthenticate
18.07.2011 16:06:28.090 - MESSAGE - Response: 87820109016F72C2DD55A2EF8C6DC1EE9D9F5A2015CE8B384762FB8BD39C1B36570FE99623FE4BFFF2A76D217DBF64094FD6127FB3744764C726AD21062C47C72F1FC3A4DFAD87C23211CE03F01055145253A5D419D68E8A6BD10D7E74195F82B3235B36F887B25CAB88E3F5012D295D8D57062C17551D7D2903C4E6EB568AFD2958AC88D2F16C323BBFF33D954CF2FFDA7CE9085710B1D74F51F457C1FFD5E7BC7C75348DDB76E0A1DC15127262067C36A1E22190EAC6695D7E9E7FA7B4174B4B5E3DE892921BAEB271A7E1747AB5FF5FB5BB0F522959E28C64B5957E163BB9C37FDB0415E4A3BFBDAF8036CBE12BFA2C26AC8614F9349AF8ED9DA0EB9E3E460EF9A143DF76EEC25FFCAB2572990290008E088ED9F1A69188A4D7
18.07.2011 16:06:28.100 - MESSAGE - Decrypted Data :
7CCA8325C2FA1662DD55A2EF8CCCC6729D9F5A201597A34D4762FB8BD38DC050570FE996232146FDF2A76D217D39728D4FD6127FB38D59E7C726AD2106E05DD02F1FC3A4DF79B9353211CE03F069B72B5253A5D419EBF95E6BD10D7E74BC6811B3235B36F8991BA2AB88E3F5018501918D57062C17B4A5AC2903C4E6EB394F3C2958AC88D2FA5B0E3BBFF33D9553326BDA7CE908579F3AE94F51F457C11C2D84BC7C75348DF8E36DA1DC151272F82C7836A1E22190F28EC35D7E9E7FA7CA18AE4B5E3DE892F1EFC6B271A7E174E864E55FB5BB0F5219F4368C64B5957E928280C37FDB0415765444BDAF8036CB76B8422C26AC8614D7E1C8F8ED9DA0EB10DCB10EF9A143
18.07.2011 16:06:28.100 - DATA - Decrypted Data :
7C CA 83 25 C2 FA 16 62 DD 55 A2 EF 8C CC C6 72
9D 9F 5A 20 15 97 A3 4D 47 62 FB 8B D3 8D C0 50
57 0F E9 96 23 21 46 FD F2 A7 6D 21 7D 39 72 8D
4F D6 12 7F B3 8D 59 E7 C7 26 AD 21 06 E0 5D D0
2F 1F C3 A4 DF 79 B9 35 32 11 CE 03 F0 69 B7 2B
52 53 A5 D4 19 EB F9 5E 6B D1 0D 7E 74 BC 68 11
B3 23 5B 36 F8 99 1B A2 AB 88 E3 F5 01 85 01 91
8D 57 06 2C 17 B4 A5 AC 29 03 C4 E6 EB 39 4F 3C
29 58 AC 88 D2 FA 5B 0E 3B BF F3 3D 95 53 32 6B
DA 7C E9 08 57 9F 3A E9 4F 51 F4 57 C1 1C 2D 84
BC 7C 75 34 8D F8 E3 6D A1 DC 15 12 72 F8 2C 78
36 A1 E2 21 90 F2 8E C3 5D 7E 9E 7F A7 CA 18 AE
4B 5E 3D E8 92 F1 EF C6 B2 71 A7 E1 74 E8 64 E5
5F B5 BB 0F 52 19 F4 36 8C 64 B5 95 7E 92 82 80
C3 7F DB 04 15 76 54 44 BD AF 80 36 CB 76 B8 42
2C 26 AC 86 14 D7 E1 C8 F8 ED 9D A0 EB 10 DC B1
0E F9 A1 43
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2011
Added on Jul 18 2011
28 comments
1,336 views