The OsslParams construction was ignoring some values, which caused all RSA keys generated were always default 2k
The CCM wrapping output length was dependent on the DataLen parameter, which is not really available for the caller at the time of calculation so changing to the length of provided data allows the caller to set the parameter to reasonable value for final operation to actually work
Fix the expected lenght calculation for AES_CBC_PAD mechanism.
With these changes, the current set of tests in OpenSSL p11test works.
AES_CBC_PAD
mechanism.With these changes, the current set of tests in OpenSSL
p11test
works.