terminate called after throwing an instance of 'CryptoPP::InvalidArgument'

15 views
Skip to first unread message

Romij Uddin

unread,
Feb 15, 2020, 8:05:21 AM2/15/20
to Crypto++ Users
terminate called after throwing an instance of 'CryptoPP::InvalidArgument'
what(): RSA/OAEP-MGF1(SHA-1): ciphertext length of 152 doesn't match the required length of 256 for this key
fish: './client' terminated by signal SIGABRT (Abort)

Jeffrey Walton

unread,
Feb 16, 2020, 3:53:32 PM2/16/20
to Crypto++ Users
Add a try/catch. It will stop your program from terminating due to the uncaught exception.

Jeff
Reply all
Reply to author
Forward
0 new messages