Fix SM wrap for large RAPDU.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-01-02 01:03:51 +01:00
parent 823c1d53ea
commit 22c9b7321b
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -143,7 +143,7 @@ int sm_wrap() {
if (sm_indicator == 0) {
return CCID_OK;
}
uint8_t input[1024];
uint8_t input[4096];
size_t input_len = 0;
memset(input, 0, sizeof(input));
mbedtls_mpi ssc;