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

david_page
07.00.2007 382dc0c47ad79c241afa8e11ca8274c5a9f6e675
refs
author david_page <david_page@localhost>
Friday, September 7, 2007 07:00 +0200
committer david_page <david_page@localhost>
Friday, September 7, 2007 07:00 +0200
commit382dc0c47ad79c241afa8e11ca8274c5a9f6e675
tree 1e7a7e5d70b3a74bae00acf2de20f45bbc9a2530 tree | zip | gz
parent ad253622c4980e715f2003c9bbfc5998f62bc06c view | diff
Interim update to allow stream ciphers where no initialization vector is allowed (e.g., "RC4"). Cipher.getBlockSize equal to 0 is used to detect this case, hence this implementation likely still does not support block cipher modes that do not accept initialization vectors (e.g., ECB).

One additional remaining inadequacy is the case where the initialization vector is not the same length as the encryption key (e.g., ""Blowfish/CFB/NoPadding" allows a key length up to 448 bits, but the initialization vector is always 64 bits).
2 files modified
439 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/types/CryptoManager.java 292 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/types/CryptoManagerTestCase.java 147 ●●●●● diff | view | raw | blame | history