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

Reconcile AES and DES error messages with upstream #121

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Reconcile AES and DES error messages with upstream #121

merged 3 commits into from
Sep 26, 2023

Conversation

qmuntal
Copy link
Collaborator

@qmuntal qmuntal commented Sep 21, 2023

crypto/aes and crypto/des expects that Encrypt and Decrypt error messages start with crypto/aes: and crypto/des, there is even a test for that: https://github.com/golang/go/blob/ace1494d9235be94f1325ab6e45105a446b3224c/src/crypto/aes/aes_test.go#L322-L333

We recently changed those methods to return the more generic prefix crypto/cipher: , which broke the upstream test.

This PR fixes that by using the appropriate error prefix.

aes.go Outdated Show resolved Hide resolved
@qmuntal qmuntal merged commit 251d5fd into v2 Sep 26, 2023
16 checks passed
@dagood dagood deleted the errmsg branch September 28, 2023 18:30
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