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

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;