Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use asn1crypto instead of pyasn1 to match cryptography lib #85

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

mbarrien
Copy link
Contributor

This PR replaces pyasn1 with asn1crypto, just as the cryptography library has done. It uses a similar substitution as https://github.com/pyca/cryptography/pull/3361/files#diff-943ffbce399c77d88f98cb3cd9cdc82dR49 does for replacing encode, and goes one step further using from_p1363() in https://github.com/wbond/asn1crypto/blob/master/asn1crypto/algos.py#L531 which already does all the byte splitting that was performed in the code.

@codecov-io
Copy link

codecov-io commented Apr 22, 2017

Codecov Report

Merging #85 into master will decrease coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
- Coverage   95.32%   95.26%   -0.07%     
==========================================
  Files           3        3              
  Lines         599      591       -8     
==========================================
- Hits          571      563       -8     
  Misses         28       28
Impacted Files Coverage Δ
signxml/util/__init__.py 95.36% <ø> (-0.21%) ⬇️
signxml/__init__.py 95.12% <100%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6529b68...be7893f. Read the comment docs.

@kislyuk
Copy link
Member

kislyuk commented Apr 23, 2017

Great, thanks!

@kislyuk kislyuk merged commit 7ad3353 into XML-Security:master Apr 23, 2017
@mbarrien mbarrien deleted the asn1crypto branch April 23, 2017 14:48

Changes for v2.3.0 (2017-??-??)
===============================
- Replace pyasn1 with asn1crypto to match cryptography library
Copy link
Member

Choose a reason for hiding this comment

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

FYI, the changelog gets created automatically by https://github.com/XML-Security/signxml/blob/master/common.mk#L28

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.

3 participants