Jeroen van Erp
c5792fe4a8
Added Kex integration test
2018-07-25 10:34:52 +02:00
Jeroen van Erp
7d07c1bb46
Refactored Macs and added hmac-ripemd1600@openssh.com
2018-07-24 14:18:02 +02:00
Jeroen van Erp
5bebe044aa
Code cleanup, add { to single-line if
2018-07-12 14:55:03 +02:00
Jeroen van Erp
adc0451b3f
Cleanup OpenSSHKeyFile and add Disconnection test
2018-07-10 16:29:09 +02:00
Jeroen van Erp
df5e73f1e8
Close before interrupt LocalPortForwarder ( Fixes #426 )
2018-07-10 16:28:28 +02:00
Jeroen van Erp
eeeba57c73
Code formatting improvements.
2018-07-10 16:15:37 +02:00
Jeroen van Erp
49a450fb53
Fixed some codacy issues
2018-06-18 14:27:45 +02:00
Jeroen van Erp
42c52e4fe6
Fixed logging of Encoder to log correct sequence number
2018-04-30 09:30:28 +02:00
Jeroen van Erp
329966ecc4
Using UTF-8 encoding for PrivateKeyFileResource ( Fixes #413 )
2018-04-30 09:30:00 +02:00
Jeroen van Erp
76e6e572b4
Merge branch 'master' into issue-358
2018-03-22 22:50:37 +01:00
Jeroen van Erp
2003a9f8c9
Add support for verifying multiple host entries ( Fixes #405 )
2018-03-21 23:54:25 +01:00
Jeroen van Erp
84a7677a62
Add support for hmac-ripemd-160
2018-03-05 13:00:41 +01:00
Jeroen van Erp
a63f9ee8fd
New version Base64 class
2018-03-05 13:00:41 +01:00
Maxim Dobryakov
26df2f3c23
HostEntry constructor must be public
...
Reasons:
1) SimpleEntry (was replaced to HostEntry) class had public constructor
2) HostEntry class can be used outside of sshj library to add entries to .known_hosts file (i.e. for implementation of interactive HostKeyVerifier)
2018-02-20 22:59:36 +03:00
Michael Prankl
39b72eed62
Android Compability, again ;-) ( #392 )
...
* Rework SecurityUtils and PKCS8KeyFile for usage with SpongyCastle.
* Specifying providerName for registration is unneccessary.
* Update AndroidConfig, fix imports.
* Workaround for Android 5.0 bug when SpongyCastle is the default JCE provider.
On Android 5.0 reading the version from the jar does throw a SecurityException due to a bug in Android (see https://issuetracker.google.com/issues/36993752 ). Including that Exception in the catch provides a workaround for that issue.
2018-01-30 16:22:05 +01:00
Jeroen van Erp
265e9d2916
Add extra logging in OpenSSHKnownHosts and extra test
2018-01-24 15:53:12 +01:00
Jeroen van Erp
0b6552654b
Fix 'key spec not recognized' exception with ECDSA keys
2018-01-23 19:58:04 +01:00
Michael Prankl
54018a4a81
Update AndroidConfig ( #389 )
...
* Add EdDSA signature for AndroidConfig.
* Initialize KeyExchange- and FileKeyProviderFactories with registered "bouncyCastle" (in fact, SpongyCastle is registered).
See #308 for discussion.
2017-12-28 11:55:36 +01:00
Jeroen van Erp
8ca6451d5d
Fixed length bug in putString ( Fixes #187 )
2017-12-27 23:02:41 +01:00
Jeroen van Erp
a71a7d7d33
Fix escaping in WildcardHostMatcher ( #382 )
...
* Escape '[' and ']' in WildcardHostMatcher
* Anchoring regex to match entire string (Fixes #381 )
2017-11-13 15:49:48 +01:00
Charles Gould
c67ae242f2
Migrate remaining block ciphers
2017-10-11 17:34:18 -04:00
charlesrgould
823f1e5759
Log security provider registration failures ( #374 )
2017-10-11 23:21:49 +02:00
paladox
f046a41750
Update net.i2p.crypto:eddsa to 0.2.0 ( #372 )
...
* Update net.i2p.crypto:eddsa to 0.2.0
* Update net.i2p.crypto.eddsa to 0.2.0
* Update net.i2p.crypto.eddsa to 0.2.0
* Update net.i2p.crypto.eddsa to 0.2.0
2017-10-11 21:47:51 +02:00
charlesrgould
c161fe26f6
Extracted ASN.1/DER encoding to method ( #368 )
2017-10-04 11:06:37 +02:00
Jeroen van Erp
ec46a7a489
Fix decoding signature bytes ( Fixes #355 , #354 ) ( #361 )
...
* Fix for signature verify in DSA
* Cleaned up signature verification
* Fixed import
* Ignored erroneous pmd warnings
* Updated JavaDoc
2017-09-29 13:23:21 +02:00
Jeroen van Erp
762d088388
Added support for new-style fingerprints ( #365 )
...
* Added support for new-style fingerprints
* Fixed codacy warnings
2017-09-28 14:01:04 +02:00
Jeroen van Erp
28d57840ab
Organised imports
2017-09-19 17:22:55 -04:00
Charles Gould
2984291d84
Removed deprecated method
2017-09-07 23:18:46 +02:00
Charles Gould
bdbd9d7eb5
Disambiguated signature initialization
2017-09-07 23:18:46 +02:00
Jeroen van Erp
c6c9a3f6a8
Correctly determine KeyType for ECDSA public key ( Fixes #356 )
2017-09-05 15:23:47 +02:00
Jeroen van Erp
0918bc626f
Improved test stability
2017-08-24 13:59:58 +02:00
Jeroen van Erp
cf077e2a4f
Removed use of DataTypeConverter as that is no longer in default JDK9
2017-08-24 11:20:35 +02:00
Jeroen van Erp
8856aaea61
Fixed codacy
2017-08-22 19:32:45 +02:00
Jeroen van Erp
1f6615b57a
Check whether filename is a child of the current file ( Fixes #341 )
2017-08-22 19:32:45 +02:00
Matt Dailey
e5084ed8db
Removed Builder, and fixed call to checkFormatString
2017-07-10 09:30:10 +02:00
Matt Dailey
aed3decf1d
Upgraded Mockito, and added message and retries to ConsolePasswordFinder
...
* Upgraded Mockito to 2.8.47 (latest)
* Added extension to allow mocking final classes
* ConsolePasswordFinder allows custom message and number of retries
* Added builder for ConsolePasswordFinder
* Added more unit tests
2017-07-10 09:30:10 +02:00
Matt Dailey
303c03061c
Add ConsolePasswordFinder to read from Console
...
* There was no example `PasswordFinder` to prompt
a user for their password
2017-07-10 09:30:10 +02:00
Iger
ed65176b68
- Incorrect key format during write
2017-07-04 10:02:00 +02:00
Iger
28f3280a84
- license header
2017-07-04 10:02:00 +02:00
Iger
d69f722908
- Some more indentation fixes
2017-07-04 10:02:00 +02:00
Iger
1d7cb8c2c6
- Some more indentation fixes
2017-07-04 10:02:00 +02:00
Iger
6ad6242ed1
- Ident in spaces
2017-07-04 10:02:00 +02:00
Iger
3310530d42
- cleanup
2017-07-04 10:02:00 +02:00
Iger
3685f9dc36
- Formal generation of ASN.1 encoding for the ecdsa signature
...
- Support ecdsa-sha2-nistp521
2017-07-04 10:02:00 +02:00
Iger
f8cad120a6
- Pretty honed up implementation of -384
2017-07-04 10:02:00 +02:00
Iger
56dd4e4af4
- A separate enum members take with lots of code duplication
2017-07-04 10:02:00 +02:00
Jeroen van Erp
a51270791d
Remove deprecated ZLib usage
2017-06-26 09:56:37 +02:00
Jeroen van Erp
d43fc4551e
Minor reformatting
2017-06-26 09:51:40 +02:00
Jan Peter Stotz
93bf6c0089
Fixed small exception logging problem
2017-06-09 11:58:24 +02:00
Jeroen van Erp
7b535a8db3
Added support for wildcard host entries in known_hosts ( Fixes #331 )
2017-05-22 14:43:30 +02:00