I need to recreate animation curves from adobe after effects in my program.
For instance, the red curve on this chart (with corresponding speed chart in white):

I tried to represent it with hermite spline using the value and speed extracted from both ends of the curve. But since AE curve has the additional "influence" parameters my hermite spline failed to reproduce the result.
What kind of curves do they use? It doesn't look like a cubic spline.
After Effects' graph editor uses Bezier curves, which use influence points (attached to handles for better visual connection) to influence the curve's path between keyframes.
Control points
A Bezier curve can be described using a mathematical formula: Given the coordinates of control points Pi: the first control point has coordinates P1 = (x1, y1), the second: P2 = (x2, y2), and so on, the curve coordinates are described by the equation that depends on the parameter t from the segment [0,1].
For 4 control points:
P = (1−t)3P1 + 3(1−t)2tP2 +3(1−t)t2P3 + t3P4
Lots more detail about Bezier curves can be found here: https://javascript.info/bezier-curve