Adding support for generating more than 32 bytes at a time.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-03-04 10:46:10 +01:00
parent 41f0b53dd5
commit 59833d08eb
7 changed files with 28 additions and 24 deletions

View File

@@ -1465,7 +1465,7 @@ cmd_get_challenge (queue_t *ccid_comm)
eventflag_signal (ccid_comm, EV_EXEC_ACK_REQUIRED);
#endif
challenge = random_bytes_get ();
challenge = random_bytes_get (32);
memcpy (res_APDU, challenge, len);
res_APDU_size = len;
GPG_SUCCESS ();