From a01a24ce5aded934095ea428d539ca30850f72e3 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Thu, 22 Feb 2018 14:04:10 -0500 Subject: [PATCH] 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 --- ipaserver/plugins/otptoken.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/plugins/otptoken.py b/ipaserver/plugins/otptoken.py index 24815c108..d94ae49ff 100644 --- a/ipaserver/plugins/otptoken.py +++ b/ipaserver/plugins/otptoken.py @@ -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."""