Hello @Kanaqw,
I supposed you're doing the CBC encryption. This algorithm requires an initial value, or an initialization vector (https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation). As a result, the key used for CBC encryption requires two key elements: one is the key material (key element ID =1) and the other is the init vector (key element ID = 5).

(Source: AUTOSAR_SWS_CryptoServiceManager.pdf)
In order to configure the key for CBC encryption, you can configure one key with two key elements. For example, let's say that you want to configure KEY_8 as the CBC encryption key. You can do as follow:
1. In CryptoKeyElement, add two elements
- One is the keyElement for key material, CryptoKeyElementID must be 1
- The other is the keyElement for initial vector, CryptoKeyElementID must be 5. You can also configure the value for this initial vector in CryptoKeyElementInitValue - if it's blank then the initial vector is 0
2. In CryptoKeyType, add a KeyType, contains two above KeyElements
3. In CryptoKey, add a new key, with CryptoKeyId = 11 (KEY_8).and refer to the above KeyType

Best Regards,
Nam