This is a tool originally from 2011 for verifying+updating the MAC stored in Nintendo DSi JPEGs. The requires the seperate AES keys loaded from $HOME/.dsi/, see source.
This uses crypto code based on what other DSi tools uses, such as save_adjust etc.