Initialize the skip_buf[] array before using it with EVP_CipherUpdate()
to skip the initial segment of RC4 output. This does not change actual
behavior since the output of that call is not used and it is only there
for changing the internal state of the RC4 cipher. However, this avoids
uninitialized element issues reported in MISRA.
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
EVP_CIPHER_CTX *ctx;
int outl;
int res = -1;
- unsigned char skip_buf[16];
+ unsigned char skip_buf[16] = { 0 };
openssl_load_legacy_provider();