I have made an encryption function, that i use for both a windows program and on a microcontroller (STM32G431). It works as expected on windows, but on the chip it doesnt.
It use multiple bit shift and XOR. I already casted the function parameters to what they should be, but it still does not work.
What else could also be different on these two systems?