Fix IV handling for ClearPass in clustered environments

Description

Required in clustered environments where CAS Server B is unable to decrypt ciphertext generated on CAS Server A where the original Initialization Vector remains in a local ConcurrentHashMap.

Patch details:

  • Prepends ciphertext with IV (16 bytes); mandatory for proper decryption.

  • Derives IV length from Cipher#getBlockSize

  • Prepends ciphertext (and IV) with IV length to handle dynamic IV length case.

Affects:

Fixes:

  • NullPointerException

  • BadPaddingException

Reference:

GitHub Pull Request:

Environment

None

Activity

Show:

Misagh Moayyed November 25, 2013 at 7:14 PM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 25, 2013 at 7:01 PM
Updated December 30, 2013 at 9:52 AM
Resolved December 3, 2013 at 1:26 PM