You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
substr($plaintext, -$pad_length, $pad_length, '') eqchr($pad_length) x $pad_lengthor croak 'Incorrectly padded';
61
+
}
62
+
return$plaintext;
51
63
}
52
64
53
65
subsupported_ciphers {
@@ -100,7 +112,7 @@ This is the identifier of the active pepper. By default it will be the identifie
100
112
101
113
=item* mode
102
114
103
-
This is the mode that will be used with C<AES>. Values values are C<'ecb'>, C<'cbc'> (the default), C<'cfb'>, C<'ofb'> and C<'ctr'>.
115
+
This is the mode that will be used with C<AES>. Values values are C<'cbc'> (the default), C<'ecb'>, C<'cfb'>, C<'ofb'>, C<'ctr'>, C<'cbc-pad'> and C<ecb-pad>.
substr($plaintext, -$pad_length, $pad_length, '') eqchr($pad_length) x $pad_lengthor croak 'Incorrectly padded';
57
+
}
58
+
return$plaintext;
48
59
}
49
60
50
61
subsupported_ciphers {
@@ -87,21 +98,23 @@ This module takes all arguments also taken by L<Crypt::Passphrase::Bcrypt|Crypt:
87
98
88
99
=item* peppers
89
100
90
-
This is a map of identifier to pepper value. The identifiers should be (probably small) numbers, the values should be random binary strings that must be either 16, 24 or 32 bytes long.
101
+
This is a map of identifier to pepper value. The identifiers should be (probably small) numbers, the values should be random binary strings that must be either 16, 24 or 32 bytes long. This argument is mandatory.
91
102
92
103
=item* active
93
104
94
105
This is the identifier of the active pepper. By default it will be the identifier with the highest (numerical) value.
95
106
96
107
=item* mode
97
108
98
-
This is the mode that will be used with C<AES>. Values values are C<'cfb'>, C<'ofb'> and C<'ctr'>(the default).
109
+
This is the mode that will be used with C<AES>. Valid values are C<'ctr'> (the default), C<'cfb'>, C<'ofb'>, C<'cbc-pad'>or C<'ecb-pad'>.
99
110
100
111
=back
101
112
113
+
The C<hash> parameter will default to C<'sha384'>.
114
+
102
115
=head2Supported crypt types
103
116
104
-
This supports any sequence of <bcrypt->, C<(sha256 | sha385 | sha512)>, -encrypted-aes-, C<(ctr | cfb | ofb)>. E.g. C<bcrypt-sha384-encrypted-aes-ctr>
117
+
This supports any sequence of C<bcrypt->, C<(sha256 | sha384 | sha512)>, C<-encrypted-aes->, C<(ctr | cfb | ofb | cbc-pad | ecb-pad)>. E.g. C<bcrypt-sha384-encrypted-aes-ctr>
0 commit comments