Skip to main content

mac_key_floor_bits

Function mac_key_floor_bits 

Source
pub const fn mac_key_floor_bits(profile: Profile) -> usize
Expand description

The shortest HMAC key, in bits, profile admits. 112 is the module’s approved minimum: SP 800-131A r2 §10 Table 9 (p. 20) disallows shorter keys for MAC generation, and the AWS-LC FIPS 3.1.0 security policies list “Key Length: 112-524288” (Table 5, p. 9). bsi takes the 128 of TR-02102-1 Table 5.2 (p. 50). SP 800-107 r1 §5.3.2 (pp. 13-14): a key “shall have a security strength that meets or exceeds the security strength required to protect the data”.