crypto: fix handling of iv generator hash defaults