linotp.lib.security.fips module¶
- fips mode mixin - to overwriting the parent provider methods
with dedicated fips compliant (hmac) methods
- class linotp.lib.security.fips.FipsSecurityModule(config=None, add_conf=None)¶
Bases:
DefaultSecurityModule
- classmethod getAdditionalClassConfig()¶
- hmac_digest(bkey, data_input, hash_algo)¶
call the fips hmac function
- Parameters
bkey – the secret key of the hmac token
data_input – the input data like counter or time
- Param
the hashing algorithm
- Returns
the hmac digest