The measurement from A will give you the size of glass you need for B.
Note: If your door is less than 34” wide, you must use a standard lockset. Anything larger like a keypad lock will not work as there is insufficient space between the glass frame and the lockset.