Skip to content

Commit 299f358

Browse files
committed
Update docs and fix a default
1 parent be46cd7 commit 299f358

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README

+7-1
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,20 @@ METHODS
5757
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
5858
ml#aes128-cbc>
5959

60-
* aes196-cbc
60+
* aes192-cbc
6161
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
6262
ml#aes192-cbc>
6363

6464
* aes256-cbc
6565
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
6666
ml#aes256-cbc>
6767

68+
* aes128-gcm <https://www.w3.org/TR/xmlenc-core/#aes128-gcm>
69+
70+
* aes192-gcm <https://www.w3.org/TR/xmlenc-core/#aes192-gcm>
71+
72+
* aes256-gcm <https://www.w3.org/TR/xmlenc-core/#aes256-gcm>
73+
6874
key_transport
6975
Specify the encryption method to be used for key transport.
7076
Supported methods are:

lib/XML/Enc.pm

+8-2
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,16 @@ Used in encryption. Optional. Default method: aes256-cbc
120120
121121
=item * L<aes128-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes128-cbc>
122122
123-
=item * L<aes196-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes192-cbc>
123+
=item * L<aes192-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes192-cbc>
124124
125125
=item * L<aes256-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes256-cbc>
126126
127+
=item * L<aes128-gcm|https://www.w3.org/TR/xmlenc-core/#aes128-gcm>
128+
129+
=item * L<aes192-gcm|https://www.w3.org/TR/xmlenc-core/#aes192-gcm>
130+
131+
=item * L<aes256-gcm|https://www.w3.org/TR/xmlenc-core/#aes256-gcm>
132+
127133
=back
128134
129135
=item B<key_transport>
@@ -166,7 +172,7 @@ sub new {
166172
my $enc_method = exists($params->{'data_enc_method'}) ? $params->{'data_enc_method'} : 'aes256-cbc';
167173
$self->{'data_enc_method'} = $self->_setEncryptionMethod($enc_method);
168174

169-
my $key_method = exists($params->{'key_transport'}) ? $params->{'key_transport'} : 'rsa-1_5';
175+
my $key_method = exists($params->{'key_transport'}) ? $params->{'key_transport'} : 'rsa-oaep-mgf1p ';
170176
$self->{'key_transport'} = $self->_setKeyEncryptionMethod($key_method);
171177

172178
return $self;

0 commit comments

Comments
 (0)