The way it is written above is correct except for one thing only, the password is declared as a byte array instead of char array which is then type cast to byte at the processing stage so this
t0 = INVCRC32(t0,(uint8_t)passw[x]);
and this are the answers:
char passw[10] = {
'1','2','3','4','5','6','7','8','9','0'
};