aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-p15.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-p15.c')
-rw-r--r--scd/app-p15.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/scd/app-p15.c b/scd/app-p15.c
index 5616e2e48..2884e0df5 100644
--- a/scd/app-p15.c
+++ b/scd/app-p15.c
@@ -5649,14 +5649,11 @@ do_sign (app_t app, ctrl_t ctrl, const char *keyidstr, int hashalgo,
}
else if (prkdf->key_reference_valid)
{
- unsigned char mse[6];
+ unsigned char mse[3];
- mse[0] = 0x80;
+ mse[0] = 0x84; /* Select asym. key. */
mse[1] = 1;
- mse[2] = 0x13; /* pkcs#1.5, sha-256 */
- mse[3] = 0x84; /* Select asym. key. */
- mse[4] = 1;
- mse[5] = prkdf->key_reference;
+ mse[2] = prkdf->key_reference;
err = iso7816_manage_security_env (app_get_slot (app),
0x41, 0xB6,