How can I check if an IV size is valid for a cipher algorithm?
I want to create an utility object that has a specified secret key and cipher algorithm/transformation, to make it easier to do enc/decryption with that key, and I would also like to specify the size of the IVs to be used in the constructor, but I want it to fail upon initialization if the given size is invalid, to avoid having to deal with exceptions every time and just assume they won’t happen later.