Skip to content

Add a pure ecc sign/verify example#189

Merged
dgarske merged 4 commits intowolfSSL:masterfrom
kaleb-himes:ADD_ECC_SIG_VER_EXAMPLE
Feb 27, 2020
Merged

Add a pure ecc sign/verify example#189
dgarske merged 4 commits intowolfSSL:masterfrom
kaleb-himes:ADD_ECC_SIG_VER_EXAMPLE

Conversation

@kaleb-himes
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good example.

I get a failure when I run it. Any ideas?

./ecc_sign_verify
Key size is 112, byteField = 14, maxSigSz = 37
Successfully verified signature w/ ecc key size 112!
Key size is 128, byteField = 16, maxSigSz = 41
Successfully verified signature w/ ecc key size 128!
Key size is 160, byteField = 20, maxSigSz = 49
Successfully verified signature w/ ecc key size 160!
Key size is 192, byteField = 24, maxSigSz = 57
Successfully verified signature w/ ecc key size 192!
Key size is 224, byteField = 28, maxSigSz = 65
Successfully verified signature w/ ecc key size 224!
Key size is 239, byteField = 30, maxSigSz = 69
Successfully verified signature w/ ecc key size 239!
Key size is 256, byteField = 32, maxSigSz = 73
Successfully verified signature w/ ecc key size 256!
Key size is 320, byteField = 40, maxSigSz = 89
failed wc_ecc_sign_hash()
failed 320 test

Comment thread signature/ecc-sign-verify/Makefile Outdated
@kaleb-himes
Copy link
Copy Markdown
Contributor Author

Changed max sig size to be ECC_MAX_SIG_SIZE based on @dgarske suggestion, thanks so much!

@kaleb-himes kaleb-himes removed their assignment Feb 13, 2020
@kaleb-himes kaleb-himes requested a review from dgarske February 13, 2020 19:18
Comment thread signature/ecc-sign-verify/README.md Outdated
Comment thread signature/ecc-sign-verify/ecc_sign_verify.c Outdated
Comment thread signature/ecc-sign-verify/ecc_sign_verify.c Outdated
@dgarske dgarske assigned kaleb-himes and unassigned dgarske Feb 19, 2020
@kaleb-himes kaleb-himes assigned dgarske and unassigned kaleb-himes Feb 27, 2020
@kaleb-himes kaleb-himes requested a review from dgarske February 27, 2020 18:07
Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kaleb

@dgarske dgarske merged commit aeedfa3 into wolfSSL:master Feb 27, 2020
yota22721 pushed a commit to yota22721/wolfssl-examples that referenced this pull request Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants