SWRU543B January 2019 – June 2025 CC3230S , CC3230SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The steps listed in Table 18-2 initialize the DES
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Enable clock | CRYPTOCLKEN [0] | 0x1 |
| Select the algorithm type (DES or 3DES). | See the programming models. | |
| Select the operating mode (ECB, CBC or CFB). | DES_CTRL[5:4] MODE | – |
| IF: ECB operating mode not selected | DES_CTRL[5:4] MODE | ≠ 0x0 |
| Load the initialization vector LSW. | DES_IV_L[31:0] IV_L | – |
| Load the initialization vector MSW. | DES_IV_H[31:0] IV_H | – |
| Define the cryptographic data length. | DES_LENGTH[31:0] LENGTH | – |
| ENDIF | ||
| Select encryption or decryption | DES_CTRL[2] DIRECTION | – |