hey Miguel,

Are you sure ivLen is useful here? the code calling this function can still lie to you...