Symmetric Tactical Assertion : Receiver unable to decrypt results from encrypted output
book
Article ID: 107676
calendar_today
Updated On:
Products
STARTER PACK-7CA Rapid App SecurityCA API Gateway
Issue/Introduction
When using the SymetricEncryptionTacticalAssertion.saar. The receiver of the encrypted output is not able to decrypt the data generated from the tactical assertion. It is unclear from the documentation how does one process the output to get the IV (Initialization vector).
Environment
Release: Component: APIGTW
Resolution
For encryption the IV (initialization vector) is randomly generated, and then it is pre-pended to the encrypted bytes .
So the first X bytes of the returned bytearray will be the iv that was used.
Where X depends on the block size of the cipher : Which is coded as :