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

Only implement the supported AES extra mode interfaces #186

Merged
merged 8 commits into from
Oct 21, 2024
Merged

Only implement the supported AES extra mode interfaces #186

merged 8 commits into from
Oct 21, 2024

Conversation

qmuntal
Copy link
Collaborator

@qmuntal qmuntal commented Sep 13, 2024

Some OpenSSL providers (such as SymCrypt) doesn't implement the AES CRT mode. If there is no fall back provider for AES CRT, then openssl.NewAESCipher should return an object that doesn't implement the aes.ctrAble interface. The same applies to other AES modes.

Our azurelinux CI job hasn't triggered this situation because it is configured to use SymCrypt by default and fall back to the built-in default provider for algorithms that SymCrypt doesn't support. I triggered the error by making the built-in default provider unavailable.

aes.go Outdated Show resolved Hide resolved
aes.go Outdated Show resolved Hide resolved
aes.go Show resolved Hide resolved
qmuntal and others added 4 commits September 16, 2024 09:24
@qmuntal qmuntal requested a review from dagood September 16, 2024 07:37
@qmuntal
Copy link
Collaborator Author

qmuntal commented Sep 20, 2024

@derekparker could someone from your team review this PR? Thanks!

aes.go Outdated Show resolved Hide resolved
@qmuntal qmuntal requested a review from ueno September 23, 2024 11:07
@qmuntal
Copy link
Collaborator Author

qmuntal commented Sep 26, 2024

@ueno can you take another look? Thanks!

@qmuntal
Copy link
Collaborator Author

qmuntal commented Oct 4, 2024

@ueno can you take another look? Thanks!

ping @ueno

@qmuntal
Copy link
Collaborator Author

qmuntal commented Oct 21, 2024

@derekparker I'm merging this PR, as this is blocking some other work I have to do. Feel free to open an issue with any concern you have once your team have time to review it.

@qmuntal qmuntal merged commit 607303c into v2 Oct 21, 2024
26 checks passed
@qmuntal qmuntal deleted the aessc branch October 21, 2024 12:52
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.

4 participants