iso7816_set_security_env(): correctly set P1 parameter in case of
SC_SEC_OPERATION_DECIPHER Thanks to Aleksey Samsonov for the patch http://www.opensc-project.org/pipermail/opensc-devel/2009-June/012263.html git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3698 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
b3e9ce36a4
commit
c44b7cbbeb
|
@ -667,7 +667,7 @@ static int iso7816_set_security_env(sc_card_t *card,
|
|||
sc_format_apdu(card, &apdu, SC_APDU_CASE_3_SHORT, 0x22, 0, 0);
|
||||
switch (env->operation) {
|
||||
case SC_SEC_OPERATION_DECIPHER:
|
||||
apdu.p1 = 0x81;
|
||||
apdu.p1 = 0x41;
|
||||
apdu.p2 = 0xB8;
|
||||
break;
|
||||
case SC_SEC_OPERATION_SIGN:
|
||||
|
|
Loading…
Reference in New Issue