Skip to content

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.

@qmuntal qmuntal merged commit 251d5fd into v2 Sep 26, 2023
@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.

3 participants