generate all lm-sub-hashes