mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

david_page
08.46.2007 e37ed313cbf50f607d43de83dac3e0f87f2a9381
refs
author david_page <david_page@localhost>
Saturday, September 8, 2007 05:46 +0200
committer david_page <david_page@localhost>
Saturday, September 8, 2007 05:46 +0200
commite37ed313cbf50f607d43de83dac3e0f87f2a9381
tree f3e7c726616f05e412358d6f5eb9db8d3b856035 tree | zip | gz
parent 977c69266169ab5b0680baf4644112fee2adb686 view | diff
Issue 466 partial

CryptoManager encryption

Allow key size different from block size for block ciphers that support it (e.g., Blowfish as in Blowfish/CFB/NoPadding", 128) and block ciphers modes that use no initialization vector (e.g., ECB as in "DES/ECB/PKCS5Padding", 64). Note that this is accomplished without adding an initialization vector parameter to the encryption API. Instead, if the Cipher.getBlockSize is non-zero, the Cipher object is first instantiated with that size initialization vector, and if that fails, initialized without an initialization vector.
2 files modified
669 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/types/CryptoManager.java 617 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/types/CryptoManagerTestCase.java 52 ●●●●● diff | view | raw | blame | history