Add key length check to rsa_kem operation.