mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: Add option --pss to pksign to be used by smartcards.
* agent/command.c (cmd_sethash): Add option --pss and allow for --hash=null. * agent/agent.h (struct server_control_s): Add digest.is_pss and zero where needed. * agent/pksign.c (agent_pksign_do): Allow for PSS with cards. * scd/command.c (cmd_pksign): Add for --hash=none. -- This is not a full implementaion of PSS but allows scdaemon card drivers to detect already PSS formatted data. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
373c975859
commit
bb096905b9
5 changed files with 31 additions and 8 deletions
|
@ -254,12 +254,14 @@ struct server_control_s
|
|||
/* Information on the currently used digest (for signing commands). */
|
||||
struct {
|
||||
char *data; /* NULL or malloced data of length VALUELEN. If
|
||||
this is set The other fields are ignored. Used
|
||||
for PureEdDSA. */
|
||||
this is set the other fields are ignored. Used
|
||||
for PureEdDSA and RSA with PSS (in which case
|
||||
data_is_pss is also set). */
|
||||
int valuelen;
|
||||
int algo;
|
||||
unsigned char value[MAX_DIGEST_LEN];
|
||||
int raw_value: 1;
|
||||
unsigned int raw_value: 1;
|
||||
unsigned int is_pss: 1; /* DATA holds PSS formated data. */
|
||||
} digest;
|
||||
unsigned char keygrip[20];
|
||||
int have_keygrip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue