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

Windows build does not have AES128-GCM support? #161

Open
lietu opened this issue Nov 13, 2020 · 1 comment
Open

Windows build does not have AES128-GCM support? #161

lietu opened this issue Nov 13, 2020 · 1 comment

Comments

@lietu
Copy link

lietu commented Nov 13, 2020

I'm using python3-saml==1.9.0 which depends on xmlsec==1.3.9. The suomi.fi authentication portal recently updated from AES128-CBC to AES128-GCM support and the recently added Windows builds no longer function.

When trying to process the SAML assertion, I see the following kind of errors logged:

func=xmlSecTransformNodeRead:file=..\src\transforms.c:line=1307:obj=unknown:subj=xmlSecTransformIdListFindByHref:error=1:xmlsec library function failed:href=http://www.w3.org/2009/xmlenc11#aes128-gcm 
func=xmlSecTransformCtxNodeRead:file=..\src\transforms.c:line=588:obj=EncryptionMethod:subj=xmlSecTransformNodeRead:error=1:xmlsec library function failed:
func=xmlSecEncCtxEncDataNodeRead:file=..\src\xmlenc.c:line=739:obj=EncryptionMethod:subj=xmlSecTransformCtxNodeRead:error=1:xmlsec library function failed:
func=xmlSecEncCtxDecryptToBuffer:file=..\src\xmlenc.c:line=592:obj=unknown:subj=xmlSecEncCtxEncDataNodeRead:error=1:xmlsec library function failed:
func=xmlSecEncCtxDecrypt:file=..\src\xmlenc.c:line=520:obj=unknown:subj=xmlSecEncCtxDecryptToBuffer:error=1:xmlsec library function failed:
# .. other internal stuff ..
xmlsec.InternalError: (-1, 'failed to decrypt')

This does not appear to be a problem if I install the dependencies from the same pyproject.toml with poetry inside a Linux environment (Alpine Linux Docker container).

@hoefling
Copy link
Member

@lietu you're right - on Windows, the xmlsec1 library linked against is 1.2.24 that doesn't contain the AES-GCM support yet. Will look into it.

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

No branches or pull requests

2 participants