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 authored and Rob Crittenden committed 2018-03-12 13:29:19 -04:00
1 parent c9c58f2d35
commit a01a24ce5a
1 file changed
+1 -1
+1 -1
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."""