Skip to main content
1 of 3

How to calculate inverse affine transform in AES from forward affine transform?

In AES the forward affine tranformation matrix is defined as:

| 1 0 0 0 1 1 1 1 |
| 1 1 0 0 0 1 1 1 |
| 1 1 1 0 0 0 1 1 |
| 1 1 1 1 0 0 0 1 |
| 1 1 1 1 1 0 0 0 |
| 0 1 1 1 1 1 0 0 |
| 0 0 1 1 1 1 1 0 |
| 0 0 0 1 1 1 1 1 |

and the inverse affine transformation matrix is defined as:

| 0 0 1 0 0 1 0 1 |
| 1 0 0 1 0 0 1 0 |
| 0 1 0 0 1 0 0 1 |
| 1 0 1 0 0 1 0 0 |
| 0 1 0 1 0 0 1 0 |
| 0 0 1 0 1 0 0 1 |
| 1 0 0 1 0 1 0 0 |
| 0 1 0 0 1 0 1 0 |

How is the inverse affine transformation derived from the forward affine transformation?