Add custom length specification to sha256_with_iv