I am updating a transparent file with secure messaging, using
GPKFileSystemService.update().

When try I to update a number of bytes which is a multiple of 8 starting
with 3 (that is: 3, 11, 19, 27 etc.), the following exception is thrown:

com.gemplus.opencard.service.gpk.GPKException: ISO error (69 82): Access
condition not fulfilled:
 Secure messaging required and no key specified in Access Condition.
 Secure messaging required and no temporary administration key established.
 at
com.gemplus.opencard.service.gpk.GPKResponseAPDU.validate(GPKResponseAPDU.ja
va:104)
 at
com.gemplus.opencard.service.gpk.access.GPKCardAccessor.executeCommand(GPKCa
rdAccessor.java:367)
(....etc.....)

Why on earth does this happen? All other lengths work just fine!

I can image that it has to do with the CRYCS values appended, except they
are only inserted after each 61 bytes....
Perhaps something about the padding policy when calculating CRYCK-values?

Any help would of course be greatly appreciated!!

Regards,
Jacob Tjornholm

________________________
Jacob Tjornholm
Systems Engineer
Cryptomathic A/S
Kannikegade 14, 3.
DK-8000 Aarhus C
tel. +45 8613 9020
www.cryptomathic.com

Email : [EMAIL PROTECTED]
direct tel. +45 8676 2282
________________________





---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to