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

type R = R<u32, HASH_MODE_IN>;

Reader of register HASH_MODE_IN

Methods

impl R[src]

pub fn reserved1(&self) -> RESERVED1_R[src]

Bits 4:31 - 31:4] Write 0s and ignore on reading

pub fn sha256_mode(&self) -> SHA256_MODE_R[src]

Bit 3 - 3:3] The host must write this bit with 1 before processing a hash session.

pub fn reserved2(&self) -> RESERVED2_R[src]

Bits 1:2 - 2:1] Write 0s and ignore on reading

pub fn new_hash(&self) -> NEW_HASH_R[src]

Bit 0 - 0:0] When set to 1, it indicates that the hash engine must start processing a new hash session. The HASH_DIGEST_n registers will automatically be loaded with the initial hash algorithm constants of the selected hash algorithm. When this bit is 0 while the hash processing is started, the initial hash algorithm constants are not loaded in the HASH_DIGEST_n registers. The hash engine will start processing with the digest that is currently in its internal HASH_DIGEST_n registers. This bit is automatically cleared when hash processing is started.