Encryption Key by combining uint32_t and byte array

You need parenthesis if the parameter is a type. If it’s a variable then the sizeof operator does not require any.

I’m not sure what you did but I am pretty sure that what I proposed would work. (Typed here though so untested)