Yes, afs string2key is also called from src/lib/crypto/old/des_string2key.c in the s2kparams = 1 case. However I'm not sure that code actually helps your problem because it doesn't look like the AFS s2k function takes a length at all. How did this ever work?