Skip to content

Commit

Permalink
mse
Browse files Browse the repository at this point in the history
  • Loading branch information
miyako committed Dec 10, 2024
1 parent f7aa466 commit 41b5182
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/My-Number-Card_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,10 @@ static void _apdu_set_security_environment_hpki_identity(SCARDHANDLE hCard, cons
MANAGE_SECURITY_ENVIRONMENT,
sizeof(MANAGE_SECURITY_ENVIRONMENT));

std::string mse;
bytes_to_hex(&data[0], data.size(), mse);
threadCtx["mse"] = mse;

if (_transmit_request(hCard, pioSendPci, data, threadCtx)) {
_apdu_verify_app_hpki_compute_digital_signature_identity(hCard, pioSendPci, threadCtx);
}
Expand All @@ -1126,6 +1130,10 @@ static void _apdu_set_security_environment_hpki_signature(SCARDHANDLE hCard, con
memcpy(&data[0],
MANAGE_SECURITY_ENVIRONMENT,
sizeof(MANAGE_SECURITY_ENVIRONMENT));

std::string mse;
bytes_to_hex(&data[0], data.size(), mse);
threadCtx["mse"] = mse;

if (_transmit_request(hCard, pioSendPci, data, threadCtx)) {
_apdu_verify_app_hpki_compute_digital_signature(hCard, pioSendPci, threadCtx);
Expand Down

0 comments on commit 41b5182

Please sign in to comment.