Commit Graph

998 Commits (14f9c4e63fbded8f1e42137491801c949333ed37)

Author SHA1 Message Date
John Safranek adcf881278 fix bug in DoPacket when simplifying payloadSz 2014-12-18 13:58:13 -08:00
John Safranek 10844bfc51 make sure code lines stay within 80 col standard 2014-12-17 15:54:33 -08:00
John Safranek a2f55d517e removed the unused buffer offset 2014-12-17 09:30:10 -08:00
John Safranek b1e32737c2 Framing in the service request messages 2014-12-16 19:09:40 -08:00
John Safranek 6c49caf9ab Added packet encryption and adding MAC 2014-12-16 13:17:18 -08:00
John Safranek 2ae2d6dcdf 1. Fixed bug with GenerateKey() that didn't take into account secret padding.
2. Fixed bug in DoPacket() that didn't increment the peer's packet sequence.
3. Fixed bug in Decrypt() where the AesCbcDecrypt case dropped through into error.
4. Refactoring the accept state machine.
5. Separating client and server block and MAC sizes.
6. Added client MAC checking.
7. Fixed bug where algorithm picking preferred server order over client.
8. Fixed bug where the algorithm list matching was checking out of bounds.
2014-12-10 21:01:22 -08:00
John Safranek 71bcd94c5f 1. Starting to add in the Decryption and MAC Verification.
2. Fixed bug in getting the entire packet from the socket.
2014-12-08 21:59:21 -08:00
John Safranek 1c902a641e encode signature without CyaSSL's compatibility layer, using wolfCrypt only 2014-12-05 17:37:39 -08:00
John Safranek 156c3bd7a5 tweak to hide the disconnect reason string output 2014-12-05 14:51:20 -08:00
John Safranek bf0133c740 added decode/encode support for base messages 2014-12-05 12:17:27 -08:00
John Safranek 2d959d7bea 1. Generates the session keys.
2. Starting to tie into the bulk encryption and MAC.
2014-09-12 21:00:16 -07:00
John Safranek 917c6a84c4 Clean up build warnings under Linux 2014-08-14 11:46:23 -07:00
John Safranek c142bc305c fix the exchange hash signing issue 2014-09-03 22:48:50 -07:00
John Safranek 852016d8c5 finally calculates the hash correctly, but isn't signing correctly. :/ 2014-09-03 13:50:23 -07:00
John Safranek ad17306d96 correctly builds the packet, hash still wrong 2014-09-02 23:21:17 -07:00
John Safranek 8be65978bb 1. Added compile flag to show the shared master secret.
2. Fixed bug where the client DH e-value wasn't being used.
2014-09-02 11:52:08 -07:00
John Safranek 6be28d3437 fix buffer overflow when generating keys 2014-09-02 11:38:18 -07:00
John Safranek c82b4bb3d8 server sends KexDhReply 2014-09-01 19:11:38 -07:00
John Safranek 21db2e1036 almost have KexDhAgree completed 2014-08-31 23:56:27 -07:00
John Safranek a9ecef7352 90% of KEXDH done 2014-08-28 14:10:02 -07:00
John Safranek b72c16f8e9 Creates and sends the server KEXINIT msg 2014-08-26 15:43:59 -07:00
John Safranek cfb7b90b32 Fill in the server's KEX Init message payload 2014-08-25 09:58:54 -07:00
John Safranek 67bb1cdbdc 1. Adding the packet building and send functions.
2. Fix RNG initializer.
2014-08-23 23:07:12 -07:00
John Safranek 5fb59b3006 Rename function SendBuffer() as SendBuffered() to match wolfSSL. 2014-08-21 14:41:05 -07:00
John Safranek 106e349a23 fix wrapper macro usage 2014-08-21 10:55:46 -07:00
John Safranek d1d9c3da81 Added an RNG to the WOLFSSH object 2014-08-21 10:50:30 -07:00
John Safranek a430fc7e27 Update the MAC and Block size based on the algo IDs. 2014-08-20 16:56:16 -07:00
John Safranek 9bb2576136 Parse out the KEX algo lists. 2014-08-20 11:47:42 -07:00
John Safranek 1c0ff7b151 Decode the KEX Init bits from the peer. 2014-08-18 20:41:53 -07:00
John Safranek 7e2674c29a 1. Added test certificate and private key.
2. Added code to load single certificate and private key from buffers.
2014-08-15 14:20:42 -07:00
John Safranek f4b1908b17 Refactor the constants. 2014-08-15 11:37:00 -07:00
John Safranek e6bfa8c131 1. Removed the peerId from handshake record. It'll be added to the key
hash directly.
2. Framing in the private key and certificate loading functions.
2014-08-14 22:34:55 -07:00
John Safranek 0feaaab922 Moved the handshake data into its own structure so it can be freed when
the handshake completes.
2014-08-13 19:31:59 -07:00
John Safranek f07f623ad6 Modified the input and output buffers, made them members of the
session object, rather than pointers.
2014-08-12 17:21:13 -07:00
John Safranek 8cb5fea384 1. Added a description comment to each C and H file.
2. Updated the FSF address in the comments.
2014-08-11 16:19:11 -07:00
John Safranek bf052f42c9 Added an endpoint type, client or server, to the wolfSSH context
constructor. (For future use.)
2014-08-11 14:45:03 -07:00
John Safranek 490fd75fa9 1. Moved error number to string conversion to internal.c
2. Removed file error.c
3. Added error code accessor for WOLFSSH objects.
4. Added error string accesor for WOLFSSH objects.
5. Cleaned up the I/O callback prototypes.
2014-08-11 14:29:06 -07:00
John Safranek a96a764bc0 Moved functions to internal.c that belong there. 2014-08-11 14:03:00 -07:00
John Safranek e03a1011d2 1. Removed some unneeded functions and data types.
2. Added some new data for sequence numbering and for key exchange.
2014-08-11 11:53:45 -07:00
John Safranek b331ff9cba fixed buffer issue on receive 2014-07-31 11:28:14 -07:00
John Safranek 1d2e1af069 filling in code 2014-07-28 07:12:54 -07:00
John Safranek dd897d2f6c example server attempts to accept an SSH connection. Note, the underlying code will lock up. 2014-07-14 11:09:50 -07:00
John Safranek 1945b2dddd added the Buffer 2014-07-07 17:36:57 -07:00
John Safranek f894548be5 Updated example server to use threads 2014-07-03 11:08:34 -07:00
John Safranek eb82d2bf28 Adding code 2014-07-01 17:27:47 -07:00
John Safranek 997013f210 Adding code 2014-07-01 17:27:29 -07:00
John Safranek 749cb6ff90 initial set of files 2014-06-24 14:48:08 -07:00
toddouska 45cde4eabe Initial commit 2014-06-23 10:07:57 -07:00