Module lpc55_pac::hashcrypt::status[][src]

Indicates status of Hash peripheral.

Structs

DIGEST_R

Field DIGEST reader - For Hash, if 1 then a DIGEST is ready and waiting and there is no active next block already started. For Cryptographic uses, this will be set for each block processed, indicating OUTDATA (and OUTDATA2 if larger output) contains the next value to read out. This is cleared when any data is written, when New is written, for Cryptographic uses when the last word is read out, or when the block is disabled.

ERROR_R

Field ERROR reader - If 1, an error occurred. For normal uses, this is due to an attempted overrun: INDATA was written when it was not appropriate. For Master cases, this is an AHB bus error; the COUNT field will indicate which block it was on.

ERROR_W

Field ERROR writer - If 1, an error occurred. For normal uses, this is due to an attempted overrun: INDATA was written when it was not appropriate. For Master cases, this is an AHB bus error; the COUNT field will indicate which block it was on.

ICBIDX_R

Field ICBIDX reader - If ICB-AES is selected, then reads as the ICB index count based on ICBSTRM (from CRYPTCFG). That is, if 3 bits of ICBSTRM, then this will count from 0 to 7 and then back to 0. On 0, it has to compute the full ICB, quicker when not 0.

NEEDIV_R

Field NEEDIV reader - Indicates the block wants an IV/NONE to be written in (set along with WAITING)

NEEDKEY_R

Field NEEDKEY reader - Indicates the block wants the key to be written in (set along with WAITING)

R

Register STATUS reader

STATUS_SPEC

Indicates status of Hash peripheral.

W

Register STATUS writer

WAITING_R

Field WAITING reader - If 1, the block is waiting for more data to process.

Enums

DIGEST_A

For Hash, if 1 then a DIGEST is ready and waiting and there is no active next block already started. For Cryptographic uses, this will be set for each block processed, indicating OUTDATA (and OUTDATA2 if larger output) contains the next value to read out. This is cleared when any data is written, when New is written, for Cryptographic uses when the last word is read out, or when the block is disabled.

ERROR_A

If 1, an error occurred. For normal uses, this is due to an attempted overrun: INDATA was written when it was not appropriate. For Master cases, this is an AHB bus error; the COUNT field will indicate which block it was on.

NEEDIV_A

Indicates the block wants an IV/NONE to be written in (set along with WAITING)

NEEDKEY_A

Indicates the block wants the key to be written in (set along with WAITING)

WAITING_A

If 1, the block is waiting for more data to process.