typos
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3594 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7b93c51230
commit
36112bf6e0
|
@ -129,7 +129,7 @@ static int entersafe_init(sc_card_t *card)
|
||||||
SC_FUNC_RETURN(card->ctx,4,SC_SUCCESS);
|
SC_FUNC_RETURN(card->ctx,4,SC_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int entersafe_gen_radom(sc_card_t *card,u8 *buff,size_t size)
|
static int entersafe_gen_random(sc_card_t *card,u8 *buff,size_t size)
|
||||||
{
|
{
|
||||||
int r=SC_SUCCESS;
|
int r=SC_SUCCESS;
|
||||||
u8 rbuf[SC_MAX_APDU_BUFFER_SIZE]={0};
|
u8 rbuf[SC_MAX_APDU_BUFFER_SIZE]={0};
|
||||||
|
@ -227,8 +227,8 @@ static int entersafe_mac_apdu(sc_card_t *card, sc_apdu_t *apdu,
|
||||||
if(keylen!=8 && keylen!=16)
|
if(keylen!=8 && keylen!=16)
|
||||||
return SC_ERROR_INTERNAL;
|
return SC_ERROR_INTERNAL;
|
||||||
|
|
||||||
r=entersafe_gen_radom(card,iv,sizeof(iv));
|
r=entersafe_gen_random(card,iv,sizeof(iv));
|
||||||
SC_TEST_RET(card->ctx,r,"entersafe gen radom failed");
|
SC_TEST_RET(card->ctx,r,"entersafe gen random failed");
|
||||||
|
|
||||||
/* encode the APDU in the buffer */
|
/* encode the APDU in the buffer */
|
||||||
if ((r=sc_apdu_get_octets(card->ctx, apdu, &tmp, &tmpsize,SC_PROTO_RAW)) != SC_SUCCESS)
|
if ((r=sc_apdu_get_octets(card->ctx, apdu, &tmp, &tmpsize,SC_PROTO_RAW)) != SC_SUCCESS)
|
||||||
|
|
Loading…
Reference in New Issue