diff --git a/src/eac.c b/src/eac.c index 322e815..c0565e1 100644 --- a/src/eac.c +++ b/src/eac.c @@ -106,8 +106,10 @@ int sm_unwrap() { } } } - if (!body) - return CCID_WRONG_DATA; + if (!body) { + apdu.nc = 0; + return CCID_OK; + } if (is87 && *body++ != 0x1) { return CCID_WRONG_PADDING; }