in reply to Crypt::RSA dies: Can't call method "encryptblock" on an undefined value

If you read the error message, you see that the problem isn't with blocksize. The problem is with $$self{es}. You assume $$self{es} exists, and contains an object - but $$self{es} is undefined, it probably doesn't exist.

From the code given, I cannot deduce what $$self{es} is supposed to be. Or that it even is suposed to exist.

  • Comment on Re: Crypt::RSA dies: Can't call method "encryptblock" on an undefined value