1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
terrafrost
c27f70c577 Exceptions: CS adjustment 2015-08-31 23:54:35 -05:00
terrafrost
2eb4ebf11c SSH/Agent: replace user_error's with exceptions 2015-08-31 23:23:40 -05:00
terrafrost
2e46aec03a SFTP: replace user_error's with exceptions 2015-08-31 23:12:33 -05:00
terrafrost
f300e825b0 SSH2: replace user_error's with exceptions 2015-08-01 08:01:43 -05:00
terrafrost
80d84d1009 ASN1/X509: throw exceptions instead of user_errors 2015-07-30 07:33:19 -05:00
terrafrost
e264a3835e rm unused exception 2015-07-28 20:17:32 -05:00
terrafrost
ebe9301efa RSA: replace user_error's with Exceptions 2015-07-28 19:41:32 -05:00
terrafrost
0565700461 Crypt/Base: use the built-in spl exceptions instead 2015-07-17 23:23:24 -05:00
terrafrost
51700b6065 Exceptions: more CS adjustments 2015-07-15 13:44:48 -05:00
terrafrost
50e8230350 Exceptions: CS adjustment 2015-07-15 13:23:22 -05:00
terrafrost
3cb0248f99 Crypt/Base: add initial exception support
To accomodate this decrypt() can no longer return false. If padding is enabled and the padding length is invalid (the only condition under which false was returned) an InvalidInputException will be thrown.

Also, previously, when encrypting, if the padding was disabled and the plaintext wasn't a multiple of the block size a E_USER_NOTICE would be issued via user_error() and then padding would be enabled. Now it's not enabled - an exception is thrown suggesting that you might want to enable padding and that's that.
2015-07-15 12:50:57 -05:00