Skip to content

Commit 39d79b6

Browse files
committed
Changes to support min key length for encryption via the new Encrpytor.MinEncryptionKeyLength property.
1 parent e2abd0a commit 39d79b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/org/owasp/esapi/SecurityConfiguration.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,13 @@ public interface SecurityConfiguration extends EsapiPropertyLoader {
175175

176176
/**
177177
* Gets the key length to use in cryptographic operations declared in the ESAPI properties file.
178+
* Note that this corresponds to the ESAPI property <b>Encryptor.EncryptionKeyLength</b> which is
179+
* considered the <i>default</i> key size that ESAPI will use for symmetric
180+
* ciphers supporting multiple key sizes. (Note that there is also an <b>Encryptor.MinEncryptionKeyLength</b>,
181+
* which is the <i>minimum</i> key size (in bits) that ESAPI will support
182+
* for encryption. (There is no miminimum for decryption.)
178183
*
179-
* @return the key length.
184+
* @return the key length (in bits)
180185
* @deprecated Use SecurityConfiguration.getIntProp("appropriate_esapi_prop_name") instead.
181186
*/
182187
@Deprecated

0 commit comments

Comments
 (0)