Hi,

ISO 7816-4: 7.5.11 MANAGE SECURITY ENVIRONMENT command:

Table 78 - P1
b8 b7 b6 b5 b4 b3 b2 b1 Meaning
- - - 1 - - - - Secure messaging in command data field
- - 1 - - - - - Secure messaging in response data field
- 1 - - - - - - Computation, decipherment, internal authentication and 
key agreement
1 - - - - - - - Verification, encipherment, external authentication and 
key agreement
- - - - 0 0 0 1 SET
1 1 1 1 0 0 1 0 STORE
1 1 1 1 0 0 1 1 RESTORE
1 1 1 1 0 1 0 0 ERASE
* Any other value is reserved for future use by ISO/IEC JTC 1/SC 17.

Could you please clarify this:
src/libopensc/iso7816.c:669:iso7816_set_security_env:
case SC_SEC_OPERATION_DECIPHER:
                 apdu.p1 = 0x41;

May be (patch is in attachment)?
Thanks
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to