The use case is to test a 24 word mnemonic for checksum validity
refer to the bip 39 wordlist, which can be found here
https://github.com/bitcoin/bips/blob/master/bip-0039/english.txtbut it is numbered 1 through 2048, which is wrong, and will give wrong results if you use it.
Change the numbering to 0 through 2047. That's 11 bits.
Then look up each of your 24 words in that list, and record each word as an 11 bit binary number (include leading zeros) and concatenate them in a 264 bit string.
Divide the string into a 256 bit string and an 8 bit string. The 256 bit string is ENT. The 8 bits is the checksum, which might be right or wrong.
Do a sha256 hash of ENT, using the specified syntax. Compare the first 8 bits of the hash to the 8 bits you took from the end of the 264 bit mnemonic binary.