AES_set_decrypt_key is needed before AES_decrypt.

    AES_set_decrypt_key(chunk.ptr, 128, &wctx);

Reply via email to