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

chore: make EncodeAscii ghost #1286

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open

Conversation

ajewellamz
Copy link
Contributor

Issue #, if available:

Description of changes:

Squash/merge commit message, if applicable:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ajewellamz ajewellamz requested a review from a team as a code owner February 4, 2025 23:24
Copy link
Contributor

@texastony texastony left a comment

Choose a reason for hiding this comment

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

LGTM, but know that I'm concerned changing EncodeAscii will effect ESDK/DB-ESDK.

However, I'm a little confused, as I actually did not see a change to EncodeAscii, just changes at its various call sites?

@ajewellamz
Copy link
Contributor Author

LGTM, but know that I'm concerned changing EncodeAscii will effect ESDK/DB-ESDK.

However, I'm a little confused, as I actually did not see a change to EncodeAscii, just changes at its various call sites?

The behavior of EncodeAscii did not change.
The only code change was to add the word ghost

The point of call changes went from

const KMS_ECDH_PROVIDER_ID: UTF8.ValidUTF8Bytes := UTF8.EncodeAscii("aws-kms-ecdh")

to

const KMS_ECDH_PROVIDER_ID: UTF8.ValidUTF8Bytes :=
    var s := [0x61, 0x77, 0x73, 0x2d, 0x6b, 0x6d, 0x73, 0x2d, 0x65, 0x63, 0x64, 0x68];
    assert s == UTF8.EncodeAscii("aws-kms-ecdh");
    s

That is, explicit bytes, with an assert that nothing changed.

Copy link

Detected changes to the release files or to the check-files action

Copy link

Changes to the release files or the check-files action requires 2 approvals from CODEOWNERS

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