Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ePass2003 support(3nd edtion). #12

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Canceled sc_mem_reverse while writing rsa key
  • Loading branch information
entersafe committed Jan 13, 2012
commit 7b79dbc8c95556bf86cd61ce16a0d26a076dbb69
2 changes: 1 addition & 1 deletion src/libopensc/card-epass2003.c
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ static int internal_write_rsa_key_factor(struct sc_card *card,
sbuff[0] = ((fid & 0xff00) >> 8);
sbuff[1] = (fid & 0x00ff);
memcpy(&sbuff[2], data.data, data.len);
sc_mem_reverse(&sbuff[2], data.len);
// sc_mem_reverse(&sbuff[2], data.len);

sc_format_apdu(card, &apdu, SC_APDU_CASE_3, 0xe7, factor, 0x00);
apdu.cla = 0x80;
Expand Down