Algebra I and some trig, at least to get pretty deep into a first college course syllabus and get enough exposure to see where you want to go with it. That "10th grade" level of math, for instance, is actually enough to get you pretty far into the practical applications of linear algebra in cryptography, but it's not enough to get you all the way to machine learning.