ECC enhancements #65
No reviewers
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt!65
Loading…
Reference in a new issue
No description provided.
Delete branch "miko-ecc-enhancements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is related to https://github.com/libtom/libtomcrypt/issues/34
I think the build error can be fixed in several ways:
I would prefer going for 2 or 4
Or we can introduce in libtommath something like LTM_VERSION (e.g. 0x0042 for version 0.42) and then in libtomcrypt's
ltm_desc.c:@fperrad may I ask you for running your linting machine on
miko-ecc-enhancementsbranch? Thanks.@karel-m linting issues:
missing prototypes in tomcrypt.h : ecc_sign_hash_ex & ecc_verify_hash_ex
bad indentation line 30 in src/pk/ecc/ecc_export_raw.c
bad indentation line 62 in src/pk/ecc/ecc_sign_hash.c
bad indentation line 72, 74 & 75 in src/pk/ecc/ecc_import_raw.c
can we somehow bring the coverage up again?
What has to be done to bring it up?
These aren't tested at all
There are no tests for all the added functionality
The new
tagfield in DER/ltc_asn1_listThe case
a==NULLin some of the code paths that are handled speciallyOh yes, tests, I know.
Coverage decreased (-3.8%) to 83.635% when pulling 1caf67f911cac889a29f61ae234b2e2b373ed5a1 on miko-ecc-enhancements into
1b81848576on develop.@ -212,8 +86,6 @@ int der_encode_sequence_ex(ltc_asn1_list *list, unsigned long inlen,if ((err = der_encode_boolean(*((int *)data), out + x, &z)) != CRYPT_OK) {goto LBL_ERR;}I prefer not to use a default case when I switch on an enum as the compiler then warns me if I add elements to the enum and forget to modify the switch-case
@sjaeckel this PR is too complex (rebasing is quite often a pain), I am considering the idea of splitting this PR into two parts: 1/ ASN.1 changes + 2/ EC-only stuf.
The part 1/ would be a new PR (which I want to merge to develop before continuing on the remaining EC-only part) comprising of approx. ede958b + subset of 01c319d
What do you think?
Coverage decreased (-3.5%) to 84.284% when pulling c7c170dc5022564aac1597c782d3576c763e2b09 on miko-ecc-enhancements into
fbe7d222c3on develop.Very good idea, that also makes review easier. Can the EC part probably be split even more?
We'll see, let's start with ASN.1 part
We need a ltm-1.0 package backported to trusty to fix these build failures.
I had to remove the ltm from sid in #217 as I couldn't update clang otherwise...
I have split this PR and my branch
miko-ecc-enhancementsto:pr/ecc-non-asn1-partpr/ecc-asn1-part(based onpr/ecc-non-asn1-part)So basically current
miko-ecc-enhancementis the same aspr/ecc-asn1-partThere fore I am closing this PR, please move futher discussion to #236 + #187
Pull request closed