Commit Graph

1660 Commits

Author SHA1 Message Date
David Sparer
1f9218bd5a Added tests for the key generator 2016-10-13 18:01:36 -06:00
David Sparer
966f7b2d61 Decryption now uses the new key derivation class 2016-10-13 17:28:25 -06:00
David Sparer
58c4b541b0 Little cleanup on decryption. Now uses the new key derivation class 2016-10-13 17:23:55 -06:00
David Sparer
f6c490fc62 Created a key derivation interface and initial Pkcs5 implementation 2016-10-13 17:17:34 -06:00
David Sparer
be59392814 Merge pull request #170 from mRemoteNG/Decryption_failing_with_custom_password
More work needs to be done to cleanup the related classes and reduce coupling, though this PR is starting to get a bit large for what the original intent was. Of particular issue are the calls to Runtime.EncryptionKey. The current implementation makes it very easy to use the wrong encryption key. Resolves #168
2016-10-13 15:59:13 -06:00
David Sparer
d0e21d7d8a Added tests for all current versions and significant variations of confCons. More changes to the deserialization classes were required to make them more testable. Still needs significant work to be considered good code 2016-10-13 15:49:49 -06:00
David Sparer
737373940e PasswordAuthenticator will only attempt reauthentication up to MaxAttempts 2016-10-13 15:46:17 -06:00
David Sparer
c639b89511 Added a custom EncryptionException type that inherits from the BouncyCastle type. This gives us a bit of namespace insulation (we shouldn't reference BouncyCastle outside of the mRemoteNG.Security namespace). 2016-10-13 12:43:47 -06:00
David Sparer
c530b3f8b4 Fixed bug where we could not turn custom password encryption off 2016-10-13 12:25:45 -06:00
David Sparer
1592a448f3 Simplified the authentication code when deserializing xml 2016-10-13 12:00:49 -06:00
David Sparer
c5ab2b1373 Changed the AeadCryptographyProvider to use the localized error message when decryption fails 2016-10-13 11:52:57 -06:00
David Sparer
f14f2cb5b7 Modified the LegacyRijndaelCryptographyProvider to throw errors when decryption fails. This is more in line with the other crypto providers 2016-10-13 11:51:24 -06:00
David Sparer
9c2945d270 Forgot to commit one changed line 2016-10-13 11:48:31 -06:00
David Sparer
05357c24f6 Removed unnecessary resource file from tests and made it a string constant instead (it was a small amount of text) 2016-10-13 11:47:15 -06:00
David Sparer
75839f330c Created test to ensure decryption failures throw an exception in AeadCryptographyProvider 2016-10-13 11:33:03 -06:00
David Sparer
ba0a9bbe58 moved the IAuthenticator into the Security.Authentication namespace 2016-10-13 10:32:23 -06:00
David Sparer
fb082471fe Created a new interface & class for authenticating passwords. This will replace the ConnectionsDecryptor class 2016-10-13 10:23:08 -06:00
David Sparer
f8968f2eb1 Resolved issue with the password prompt box not appearing when trying to decrypt with custom password. Class needs to be cleaned up. 2016-10-13 09:13:02 -06:00
David Sparer
990605948b Changed the exception when decryption fails from the generic "Exception" type to the more specific "EncryptionException" type to make catching easier. 2016-10-13 09:10:47 -06:00
David Sparer
21c96281a8 Resolved issue where encrypted values were not being decrypted correctly. (it was using the wrong decryption provider) 2016-10-13 09:09:47 -06:00
Sean Kaim
1ad7fce7a5 update nugets / fix access denied on post build 2016-10-12 17:12:05 -04:00
David Sparer
76162953e6 Resolved build failure 2016-10-12 14:23:59 -06:00
Sean Kaim
b934e29dc0 Merge pull request #167 from mRemoteNG/137_Update_Check
137 update check
2016-10-12 15:52:13 -04:00
Sean Kaim
93c128438c Merge changes from devlop into 137_Update_Check
Fixed conflicts in mRemoteV1/UI/Forms/frmOptions.cs
2016-10-12 15:48:17 -04:00
Sean Kaim
c283ddbb6a remove announcement info and cleanup 2016-10-12 15:39:44 -04:00
David Sparer
e3085a7054 Export file selection dialog box now selects file type filter based on Export form selection 2016-10-12 12:27:23 -06:00
David Sparer
4aa9a6e7a3 Changed the mRemoteNG csv exporter to not use the non-existant TreeNode for serializing its location in the tree. Resolves #165 2016-10-12 12:09:28 -06:00
David Sparer
76b0057deb Merge pull request #164 from mRemoteNG/Remove_RemoteDesktop2008_export_option
Closes #144
2016-10-12 11:36:22 -06:00
David Sparer
5d964f7638 Removed the visionapp Remote Desktop 2008 export option and all related code 2016-10-12 11:30:31 -06:00
David Sparer
81610dee0e Merge pull request #158 from mRemoteNG/Implement_new_cryptography_providers
Implement new crypto providers
2016-10-12 10:05:53 -06:00
David Sparer
f64c0ae266 Code cleanup 2016-10-12 10:00:31 -06:00
David Sparer
324992f6ff Fixed a variable that should have been renamed 2016-10-12 09:58:50 -06:00
David Sparer
c35ce9ffe1 Renamed source file to match class name 2016-10-12 09:53:05 -06:00
David Sparer
a13a6d3919 Renamed the SaveFilter properties to include the prefix "Save" 2016-10-12 09:51:08 -06:00
David Sparer
ac01c6fff2 Renamed the Save class to SaveFilter to better indicate its purpose 2016-10-12 09:49:33 -06:00
David Sparer
53074c7b20 Simplified the Save class 2016-10-12 09:45:38 -06:00
David Sparer
1d4ef9474f Added tests of all BlockCipherEngine and BlockCipherMode combinations to ensure encryption/decryption is working. 2016-10-12 09:33:18 -06:00
David Sparer
59e948fa06 Renamed function to better show its purpose 2016-10-12 09:06:18 -06:00
David Sparer
55fe30b02c Resolved bug when unable to decrypt the confCons file. The app will now exit without attempting to save the cons file (avoiding data corruption issues) 2016-10-12 09:00:28 -06:00
David Sparer
e2929f43a3 Code cleanup of GeneralAppInfo (mostly just renames) 2016-10-12 08:19:37 -06:00
David Sparer
9d67f58490 Replaced all calls to GeneralAppInfo.EncryptionKey to Runtime.EncryptionKey 2016-10-12 08:16:05 -06:00
David Sparer
a862240ed7 Code cleanup 2016-10-12 08:09:28 -06:00
David Sparer
0f604f453d Code cleanup 2016-10-12 07:38:47 -06:00
David Sparer
113e9eba79 Deserialization now works for full file encryption 2016-10-11 20:02:54 -06:00
David Sparer
9af610a45b Rewrote the full file encryption code for the xml serializer. It now conforms to the expected placement of encrypted data 2016-10-11 16:09:42 -06:00
Sean Kaim
e8db5d267e display proper options page on customize
and code clean up
2016-10-11 17:41:11 -04:00
David Sparer
201fbb71c1 Xml deserializer is working for the new confcons schema to detect and use variable encryption methods. Full file decryption does not currently function. 2016-10-10 20:08:01 -06:00
David Sparer
2f87e55ae6 Incremented confcons file serialization version 2016-10-10 19:42:22 -06:00
David Sparer
34af797ad2 Modified xml serializer to use the new confcons schema 2016-10-10 19:41:14 -06:00
David Sparer
4ca640eee5 Made modifications to the confcons v2.6 schema. Eliminated the EncryptionInfo node. Its attributes are now owned by Connections node. 2016-10-10 19:31:22 -06:00