mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
scd:p15: Fix accidental commit of debug code
* scd/app-p15.c (do_sign): Revert MSE setting. -- Fixes-commit: 91acbdc93c8a6ae06b483a27c8bb7c33a978108d
This commit is contained in:
parent
62becf599e
commit
e3db6c74a6
@ -5649,14 +5649,11 @@ do_sign (app_t app, ctrl_t ctrl, const char *keyidstr, int hashalgo,
|
|||||||
}
|
}
|
||||||
else if (prkdf->key_reference_valid)
|
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[1] = 1;
|
||||||
mse[2] = 0x13; /* pkcs#1.5, sha-256 */
|
mse[2] = prkdf->key_reference;
|
||||||
mse[3] = 0x84; /* Select asym. key. */
|
|
||||||
mse[4] = 1;
|
|
||||||
mse[5] = prkdf->key_reference;
|
|
||||||
|
|
||||||
err = iso7816_manage_security_env (app_get_slot (app),
|
err = iso7816_manage_security_env (app_get_slot (app),
|
||||||
0x41, 0xB6,
|
0x41, 0xB6,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user