Module lpc55_pac::hashcrypt::cryptcfg[][src]

Crypto settings for AES and Salsa and ChaCha

Structs

AESCTRPOS_R

Field AESCTRPOS reader - Halfword position of 16b counter in IV if AESMODE is CTR (position is fixed for Salsa and ChaCha). Only supports 16b counter, so application must control any additional bytes if using more. The 16-bit counter is read from the IV and incremented by 1 each time. Any other use CTR should use ECB directly and do its own XOR and so on.

AESCTRPOS_W

Field AESCTRPOS writer - Halfword position of 16b counter in IV if AESMODE is CTR (position is fixed for Salsa and ChaCha). Only supports 16b counter, so application must control any additional bytes if using more. The 16-bit counter is read from the IV and incremented by 1 each time. Any other use CTR should use ECB directly and do its own XOR and so on.

AESDECRYPT_R

Field AESDECRYPT reader - AES ECB direction. Only encryption used if CTR mode or manual modes such as CFB

AESDECRYPT_W

Field AESDECRYPT writer - AES ECB direction. Only encryption used if CTR mode or manual modes such as CFB

AESKEYSZ_R

Field AESKEYSZ reader - Sets the AES key size

AESKEYSZ_W

Field AESKEYSZ writer - Sets the AES key size

AESMODE_R

Field AESMODE reader - AES Cipher mode to use if plain AES

AESMODE_W

Field AESMODE writer - AES Cipher mode to use if plain AES

AESSECRET_R

Field AESSECRET reader - Selects the Hidden Secret key vs. User key, if provided. If security levels are used, only the highest level is permitted to select this.

AESSECRET_W

Field AESSECRET writer - Selects the Hidden Secret key vs. User key, if provided. If security levels are used, only the highest level is permitted to select this.

CRYPTCFG_SPEC

Crypto settings for AES and Salsa and ChaCha

ICBSTRM_R

Field ICBSTRM reader - The size of the ICB-AES stream that can be pushed before needing to compute a new IV/ctr (counter start). This optimizes the performance of the stream of blocks after the 1st.

ICBSTRM_W

Field ICBSTRM writer - The size of the ICB-AES stream that can be pushed before needing to compute a new IV/ctr (counter start). This optimizes the performance of the stream of blocks after the 1st.

ICBSZ_R

Field ICBSZ reader - This sets the ICB size between 32 and 128 bits, using the following rules. Note that the counter is assumed to occupy the low order bits of the IV.

ICBSZ_W

Field ICBSZ writer - This sets the ICB size between 32 and 128 bits, using the following rules. Note that the counter is assumed to occupy the low order bits of the IV.

MSW1ST_OUT_R

Field MSW1ST_OUT reader - If 1, OUTDATA0 will be read Most significant word 1st for AES. Else it will be read in normal little endian - Least significant word 1st. Note: only if allowed by configuration.

MSW1ST_OUT_W

Field MSW1ST_OUT writer - If 1, OUTDATA0 will be read Most significant word 1st for AES. Else it will be read in normal little endian - Least significant word 1st. Note: only if allowed by configuration.

MSW1ST_R

Field MSW1ST reader - If 1, load of key, IV, and data is MSW 1st for AES. Else, the words are little endian. Note: only if allowed by configuration.

MSW1ST_W

Field MSW1ST writer - If 1, load of key, IV, and data is MSW 1st for AES. Else, the words are little endian. Note: only if allowed by configuration.

R

Register CRYPTCFG reader

STREAMLAST_R

Field STREAMLAST reader - Is 1 if last stream block. If not 1, then the engine will compute the next “hash”.

STREAMLAST_W

Field STREAMLAST writer - Is 1 if last stream block. If not 1, then the engine will compute the next “hash”.

SWAPDAT_R

Field SWAPDAT reader - If 1, will SWAP the data and IV inputs (bytes in each word).

SWAPDAT_W

Field SWAPDAT writer - If 1, will SWAP the data and IV inputs (bytes in each word).

SWAPKEY_R

Field SWAPKEY reader - If 1, will Swap the key input (bytes in each word).

SWAPKEY_W

Field SWAPKEY writer - If 1, will Swap the key input (bytes in each word).

W

Register CRYPTCFG writer

Enums

AESDECRYPT_A

AES ECB direction. Only encryption used if CTR mode or manual modes such as CFB

AESKEYSZ_A

Sets the AES key size

AESMODE_A

AES Cipher mode to use if plain AES

AESSECRET_A

Selects the Hidden Secret key vs. User key, if provided. If security levels are used, only the highest level is permitted to select this.

ICBSTRM_A

The size of the ICB-AES stream that can be pushed before needing to compute a new IV/ctr (counter start). This optimizes the performance of the stream of blocks after the 1st.

ICBSZ_A

This sets the ICB size between 32 and 128 bits, using the following rules. Note that the counter is assumed to occupy the low order bits of the IV.