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

david_page
07.00.2007 2b576336c489fa56c61fafc564ee10419bff1c60
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
commit2b576336c489fa56c61fafc564ee10419bff1c60
tree ed801034af20e877f73e22dd1d2ce00268e7bedb tree | zip | gz
parent 70c8d853d79a7cd3d91a73b5e369ca25bc83e48e 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
opends/src/server/org/opends/server/types/CryptoManager.java 292 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/types/CryptoManagerTestCase.java 147 ●●●●● diff | view | raw | blame | history