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

david_page
08.46.2007 888bcc238bdc446633ef058d899af173232022ba
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
commit888bcc238bdc446633ef058d899af173232022ba
tree dd5aaee371b8a7668e5c23abb2931808c26f0883 tree | zip | gz
parent ce5c2b6a607239067c493bea915da039b5980f9c 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
opends/src/server/org/opends/server/types/CryptoManager.java 617 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/types/CryptoManagerTestCase.java 52 ●●●●● diff | view | raw | blame | history