test: fix chacha20 key setting
In the xvalid tool, Chacha20 cipher key was being
set always with the pattern used to find sensitive information,
but this is only needed when --safe-check is passed.
Instead, a random key should be copied, like with the other algorithms.
@@ -1282,7 +1282,7 @@ prepare_keys(IMB_MGR *mb_mgr, struct cipher_auth_keys *keys,
memcpy(k2, ciph_key, 16);
break;
case IMB_CIPHER_CHACHA20:
- memset(k2, (int)CIPH_KEY_PATTERN, 32);
+ memcpy(k2, ciph_key, 32);
break;
case IMB_CIPHER_NULL:
/* No operation needed */
