[][src]Type Definition cc3220sf::aes::AUTH_LENGTH

type AUTH_LENGTH = Reg<u32, _AUTH_LENGTH>;

AAD data length. The authentication length register store the authentication data length in bytes for combined modes only (GCM or CCM) Supported AAD-lengths for CCM are from 0 to (2^16 - 2^8) bytes. For GCM any value up to (2^32 - 1) bytes can be used. Once processing with this context is started@@ this length decrements to zero. A write to this register triggers the engine to start using this context for GCM and CCM. For XTS this register is optionally used to load j. Loading of j is only required if j != 0. j is a 28-bit value and must be written to bits [31-4] of this register. j represents the sequential number of the 128-bit block inside the data unit. For the first block in a unit@@ this value is zero. It is not required to provide a j for each new data block within a unit. Note that it is possible to start with a j unequal to zero; refer to Table 4 for more details. For a Host read operation@@ these registers return all-zeroes.

This register you can read, reset, write, write_with_zero, modify. See API.

For information about available fields see auth_length module

Trait Implementations

impl Readable for AUTH_LENGTH[src]

read() method returns auth_length::R reader structure

impl ResetValue for AUTH_LENGTH[src]

Register AUTH_LENGTH reset()'s with value 0

type Type = u32

Register size

impl Writable for AUTH_LENGTH[src]

write(|w| ..) method takes auth_length::W writer structure