While the title of this ticket suggests using the enctype of the stashed master key, another approach would be trying the enctypes of the keys in K/M db entries. The latter approach is perhaps more interesting because it would also work for typed passwords.