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

Merge 21 06 #24

Merged
merged 40 commits into from
Jun 1, 2021
Merged

Merge 21 06 #24

merged 40 commits into from
Jun 1, 2021

Conversation

astraw38
Copy link
Contributor

@astraw38 astraw38 commented Jun 1, 2021

Add new error codes, PTK defines, better exception & logging formats.

Ashley Straw and others added 30 commits February 18, 2021 11:14
created pformat_pyc_args function to nicely format
pycryptoki arguments for logging/exceptions
Better formatting of funcargs

See merge request luna-automation/pycryptoki!5
Template value formatting

See merge request luna-automation/pycryptoki!6
added new mechs in default_templates.py

See merge request luna-automation/pycryptoki!7
Added new error code in lookup_dicts.py

See merge request luna-automation/pycryptoki!8
SH-5588 Clone CPV4 Extract Insert

See merge request luna-automation/pycryptoki!9
This change updates definition we have for the PlayReadP160
ECC curve to include "cofactor=1" so that it can contiue to be used
by our HSM.  This is mainly to support existing test cases and
automation as this curve is too small to be considered secure in
todays market.  And it is no longer allowed in FIPS Mode.

The actual cofactor for this curve is unkown and cannot be found from
any online source.  Re-computing the cofactor is not a trivial task.
Given that the curve is a prime curve, there is a very high probability
that the cofactor is "1".
LGX-4124 Fix PlayReadP160 ECC curve

See merge request luna-automation/pycryptoki!10
Str formatting

See merge request luna-automation/pycryptoki!11
Sh 5588

See merge request luna-automation/pycryptoki!12
The prior solution would decode bytes into unicode,
which then would get passed to a 'str()' call. In python2,
this would attempt to go *back* to bytes, and lead to errors
if the value needed to be encoded. This has been fixed by
not emitting unicode.

Also, updated the default templates to drop the
CKA_PUBLIC_EXPONENT attribute. The HSM will choose one for you,
and the original default of 3 is not FIPS validated, and shouldn't
be used in any case.
Fix unicode issue in logging

See merge request luna-automation/pycryptoki!13
Default public exponent to 0 - not absent

See merge request luna-automation/pycryptoki!14
SH-5656 CPV4 removal of deleteAfterExtract flag

See merge request luna-automation/pycryptoki!15
SH-5571 adding a new mechanism for SHA(x) HMAC_GENERAL

See merge request luna-automation/pycryptoki!16
SH-5656 CPv4 Clone Put input

See merge request luna-automation/pycryptoki!17
SH-5656 CPV4 Adding sessionOuidLen to Extract and Insert

See merge request luna-automation/pycryptoki!18
Ashley Straw 10033832 and others added 10 commits May 17, 2021 13:08
config_ptk_lib

See merge request luna-automation/pycryptoki!20
SH-5656 Adding CPV4 EXTRACT and INSERT Mechanisms

See merge request luna-automation/pycryptoki!22
add_new_mech_for_ptk

See merge request luna-automation/pycryptoki!21
Generated by running 'h2py.py' (from Python installation)
Note this will ONLY get the #defines, it will NOT
generate the structs.
Add all PTK defines

See merge request luna-automation/pycryptoki!23
Cpv4 ca funcs

See merge request luna-automation/pycryptoki!24
@astraw38 astraw38 merged commit b1c9738 into master Jun 1, 2021
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