I am trying implement the McEliece crytosystem in SAGE. My question is How I will be able to choose the appropriate matrix $S$ and $P$?. I ask this because when I trying obtain the vector $\hat{m}=mS$ in $\hat{G}\hat{m} = Decoding(c)$ I get: matrix equation has no solutions, even after verify that $G$ is full rank.