When attempting to iterate through the supported string-to-key algorithms, krb4 fails to account for the decrypt-in-place. It should probably save a copy of the ciphertext before attempting to decrypt.