Both formats take the same hash line (WPA*01 or WPA*02) as hash input.
The difference is described here:
https://hashcat.net/wiki/doku.php?id=cracking_wpawpa2
The difference is described here:
https://hashcat.net/wiki/doku.php?id=cracking_wpawpa2
Code:
Difference between hash mode 22000 and hash mode 22001:
Use hash mode 22000 to recover a Pre-Shared-Key (PSK). Length of a PSK can be 8 up to 63 characters
Use hash mode 22001 to verify an existing (pre-calculated) Plain Master Key (PMK). Length of a PMK is always 64 xdigits