为了在JavaCard中高效地计算一个正方形,我想使用指数等于2且模数大于预期结果的算法ALG_RSA_NOPAD(因此模块化缩减没有效果)。但我无法使用算法ALG_RSA_NOPAD。事实上,当我调用方法doFinal()时,我得到了一个CryptoException,它是ILLEGAL_VALUE。在JavaCard2.2.2规范中,它说:CryptoException.ILLEGAL_USEifoneofthefollowingconditionsismet:•ThisCipheralgorithmdoesnotpadthemessageandthemessageisnotblo