Skip to content

Commit

Permalink
Patch algorithm definitions (#625)
Browse files Browse the repository at this point in the history
To match node-saml master and spec.
  • Loading branch information
tomgiddingsjisc committed Jul 28, 2021
1 parent 3a13fb9 commit d782971
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/node-saml/saml.ts
Expand Up @@ -1402,8 +1402,8 @@ class SAML {
},
EncryptionMethod: [
// this should be the set that the xmlenc library supports
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes256-gcm" },
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes128-gcm" },
{ "@Algorithm": "http://www.w3.org/2009/xmlenc11#aes256-gcm" },
{ "@Algorithm": "http://www.w3.org/2009/xmlenc11#aes128-gcm" },
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes256-cbc" },
{ "@Algorithm": "http://www.w3.org/2001/04/xmlenc#aes128-cbc" },
],
Expand Down
4 changes: 2 additions & 2 deletions test/static/expected metadata.xml
Expand Up @@ -33,8 +33,8 @@ nwtlCg==
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes256-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
</KeyDescriptor>
Expand Down
4 changes: 2 additions & 2 deletions test/static/expectedMetadataWithBothKeys.xml
Expand Up @@ -55,8 +55,8 @@ nwtlCg==
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes256-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm"/>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
</KeyDescriptor>
Expand Down

0 comments on commit d782971

Please sign in to comment.