Skip to content

Commit

Permalink
ePass2003: Allow software implementation with more SHA2 hashes and ECDSA
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje authored and frankmorgner committed Feb 10, 2024
1 parent cd3f78c commit 8fa3e9f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/libopensc/card-epass2003.c
Original file line number Diff line number Diff line change
Expand Up @@ -2200,17 +2200,11 @@ epass2003_set_security_env(struct sc_card *card, const sc_security_env_t * env,
sbuf[2] = 0x92;
exdata->ecAlgFlags = SC_ALGORITHM_ECDSA_HASH_SHA256;
}
else if (env->algorithm_flags & SC_ALGORITHM_ECDSA_HASH_NONE)
else
{
sbuf[2] = 0x92;
exdata->ecAlgFlags = SC_ALGORITHM_ECDSA_HASH_NONE;
}
else
{
r = SC_ERROR_NOT_SUPPORTED;
sc_log(card->ctx, "%0lx Alg Not Support! ", env->algorithm_flags);
goto err;
}
}
else if(env->algorithm == SC_ALGORITHM_RSA)
{
Expand Down

0 comments on commit 8fa3e9f

Please sign in to comment.