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

asn: cleanup around edPubKeyASN. #8009

Merged
merged 2 commits into from
Sep 25, 2024
Merged

Conversation

philljj
Copy link
Contributor

@philljj philljj commented Sep 24, 2024

Description

Cleanup var names and comments around SetAsymKeyDerPublic() to better match current usage.

Renamed:

  • edPubKeyASN -> publicKeyASN
  • edPubKeyASN_Length -> publicKeyASN_Length
  • EDPUBKEYASN_IDX_SEQ -> PUBKEYASN_IDX_SEQ
  • etc

@philljj philljj self-assigned this Sep 24, 2024
@philljj philljj linked an issue Sep 24, 2024 that may be closed by this pull request
@philljj philljj assigned wolfSSL-Bot and unassigned philljj Sep 24, 2024
Copy link
Member

@anhu anhu left a comment

Choose a reason for hiding this comment

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

Looks fine by me, but requires one small fix and review by others.

@@ -12015,34 +12015,38 @@ int wc_EccPublicKeyDerSize(ecc_key* key, int with_AlgCurve)

#ifdef WOLFSSL_ASN_TEMPLATE
#if defined(WC_ENABLE_ASYM_KEY_EXPORT) || defined(WC_ENABLE_ASYM_KEY_IMPORT)
/* ASN.1 template for Ed25519 and Ed448 public key (SubkectPublicKeyInfo).
/* ASN.1 template for the SubjectPublicKeyInfo of a general asymmetric key.
* Used with Ed448/Ed25519, Curve448/Curve25519, sphincs, falcon, dilithium,
Copy link
Member

Choose a reason for hiding this comment

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

SPHINCS+

@philljj philljj assigned philljj and unassigned wolfSSL-Bot Sep 24, 2024
@philljj philljj requested a review from anhu September 24, 2024 18:09
@philljj
Copy link
Contributor Author

philljj commented Sep 24, 2024

Retest this please

@philljj philljj assigned wolfSSL-Bot and unassigned philljj Sep 24, 2024
@JacobBarthelmeh JacobBarthelmeh merged commit 67b0c4d into wolfSSL:master Sep 25, 2024
135 checks passed
@philljj philljj deleted the asn_cleanup branch September 25, 2024 21:13
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.

ML-DSA/Dilithium Calls ED
4 participants