[][src]Function yubirs::crypto::is_weak_mgm_key

pub fn is_weak_mgm_key(mgm_key: &[u8]) -> Result<bool>

Returns true if the given managment key's 3 DES keys are "weak", and therefore shouldn't be used. The given input management key should have been decoded from hex, but no parity bits should have been added yet (this is done implicitly).

The given management key should be in binary, and must be MGM_KEY_BYTES in length.