AES ShiftRow Confusion
The state must be written/read along the columns:

63cab7040953d051cd60e0e7ba70e18c $\mapsto$ $
\begin{bmatrix}
63 &amp; 09 &amp; cd &amp; ba \\
ca &amp; 53 &amp; 60 &amp; 70 \\
b7 &amp; d0 &amp; e0 &amp; e1 \\
04 &amp; 51 &amp; e7 &amp; 8c
\end{bmatrix}
$

shift rows $\mapsto$ $
\begin{bmatrix}
63 &amp; 09 &amp; cd &amp; ba \\
53 &amp; 60 &amp; 70 &amp; ca \\
e0 &amp; e1 &amp; b7 &amp; d0 \\
8c &amp; 04 &amp; 51 &amp; e7 
\end{bmatrix}
$ $\mapsto$ 6353e08c0960e104cd70b751bacad0e7

See Figure 3 in FIPS SP 197, 3.4 (http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197.pdf).