Commit Graph

17 Commits (cd3130fa7e23fa736fc6775a2984a770d2d87934)

Author SHA1 Message Date
John Safranek b97b6c73b8
RSA Verify
1. Added function wolfSSH_RsaVerify() which verifies the provided
   RSA signature with the provided key.
2. Call wolfSSH_RsaVerify() after all calls to wc_RsaSSL_Sign().
3. Changed a comparison between an unsigned and 0 to == from <=.
4. Fixed a spot where we still tried to sign a digest when the call
   to wc_DigestFinal() failed.
2023-12-21 12:06:11 -08:00
John Safranek 72888da82b
Unused Heap
1. Moved the heap variable declaration to the top of the function
   ChannelUpdateForward().
2. Only set heap if channel is non-null.
3. Tag heap as unused. Depending on the build environment, it might be
   left out by the preprocessor.
4. Fix a bad memory type name used in a malloc in the agent.
5. Fix a use of heap when ctx->heap was intended.
6. Fix a typo where ssh->ctx->heap was intended.
2023-11-30 15:09:56 -08:00
John Safranek 826a045bf4 RFC 8332
1. Add server auth support for RSA signing with SHA2-256 and SHA2-512.
2023-06-01 16:10:45 -07:00
John Safranek 95bcc4541c
Release v1.4.13
1. Update the copyright year in all file header comments.
2. Update the STM32CUBE files to use the correct GPL headers.
2023-04-03 10:41:10 -07:00
John Safranek d8c6fe8c8a
Add macro for giving a name to hushing unused variable handling. 2023-02-10 13:41:01 -08:00
John Safranek 36760ba0ee
Remove Public Math
1. Refactoring to remove the need for mp_int types and any of the math
   functions from wolfCrypt. wolfCrypt provides APIs for generating and
   verifying signatures and for checking keys, use them.
2. Add const to the pointers to the buffer in the Get functions used to
   parse the data stream.
3. Named the parameters for the Get functions when adding const to the
   prototypes in the header.
2022-11-17 08:31:03 -08:00
Jacob Barthelmeh 92d1f39065 update copyright date 2022-08-17 16:58:21 -06:00
John Safranek b34f144814
Preprocessor Guards
1. Add preprocessor guards for RSA/ECC to agent and the example and test
applications.
2. Remove redundant copy of FwdStates from internal.h.
2022-04-05 11:02:23 -07:00
David Garske 6162cd1181 Fixes for building without RSA or ECC. 2022-02-28 12:48:22 -08:00
Jacob Barthelmeh ba99ddda68 run license update script 2021-11-04 13:11:53 -06:00
John Safranek 351bc7585e
SSH-AGENT
1. For the client agent command line option, add the flag to the flag string.
2. Update PostSignRequest() to support all flavors of ECDSA and to
   switch out code for missing algorithms.
3. Hide function SendRequestIdentities().
2021-02-02 14:13:48 -08:00
John Safranek b7f073faa3
More Options
1. Added general disable flags for RSA and ECDSA.
2. Replaced HAVE_ECC, NO_RSA, NO_DSA with the general disable flags.
2021-02-02 10:58:03 -08:00
JacobBarthelmeh 58d0b54ed8 potential memory leak cleanup 2021-01-27 21:42:37 +07:00
John Safranek 39f30e25a4
Optional RSA
1. If RSA is disabled in the wolfCrypt build, the RSA related code
   in wolfSSH shall be disabled.
2. Examples will force themselves to use ECC if RSA is disabled.
2020-09-04 15:28:25 -07:00
John Safranek 2bf3d5bd87
SSH-AGENT (peer review)
1. Cleanup redundant includes.
2. Add comments to the Read Key function pair.
3. Remove my name as an example user.
4. Change ECC sig build arrays to use macro for size rather than
   bare number.
5. Remove empty if state for agent.
6. Added a couple needed NULL checks on allocs for the agent.
7. If unable to create an agent object on connect, disable agent use.
2020-07-22 14:48:45 -07:00
John Safranek c552af214e
SSH-AGENT
1. Replace strsep() with strtok_r() for portability with Win32.
2. Check return code from fopen as well as the provided fd.
3. Remove a redundant null check when using the agent to sign.
2020-07-19 17:31:45 -07:00
John Safranek 1250e1f9d8
SSH-AGENT
1. Added the agent support to the configure.ac script.
2. Updated the gitignore file to ignore any stamp-h file.
3. Changed to use the parsing functions and to make the parsing functions
   local.
4. Updates to multichannel.
5. Add -lutil only if needed.
6. Add configure checks for some headers that change based on target OS.
7. Bump version.
8. Test doesn't have real account or real key so agent doesn't test well.
2020-07-15 09:29:49 -07:00