X9.31 padding can not be used without a hashing function. Openssl does
not allow it. Adjust test to key-manager changes.
Change-Id: I23771afc3dedb4d05b241d17ade39eb9c13d52a1
// no hash + padding + long message
expectInvalid(MESSAGE_LONG);
- // no hash + padding + short message
- if (algo == RSA)
+ // no hash + padding other than X9.31 + short message
+ if (algo == RSA && pad.first != CKMC_X931_PADDING)
expectSuccess(MESSAGE_SHORT);
else
expectInvalid(MESSAGE_SHORT); // no support for CKMC_HASH_NONE