[][src]Type Definition cc2538::aes::aes_auth_length::R

type R = R<u32, AES_AUTH_LENGTH>;

Reader of register AES_AUTH_LENGTH

Methods

impl R[src]

pub fn auth_length(&self) -> AUTH_LENGTH_R[src]

Bits 0:31 - 31:0] Bits [31:0] of 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 0. A write to this register triggers the engine to start using this context for GCM and CCM. For a host read operation, these registers return all-0s.