Increase the default token key size

The previous default token key size would fail in FIPS mode for the sha384
and sha512 algorithms. With the updated key size, the default will work in
all cases.

https://pagure.io/freeipa/issue/7168

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Nathaniel McCallum 2018-02-22 14:04:10 -05:00 committed by Rob Crittenden
parent c9c58f2d35
commit a01a24ce5a

View File

@ -72,7 +72,7 @@ TOKEN_TYPES = {
}
# NOTE: For maximum compatibility, KEY_LENGTH % 5 == 0
KEY_LENGTH = 20
KEY_LENGTH = 35
class OTPTokenKey(Bytes):
"""A binary password type specified in base32."""