This might be of some help. From my physics notes:
-----------------------------------------------------
Finding the closest point on a line to another point.
-----------------------------------------------------
(x1, y1, z1), (x2, y2, z2) = ends of line segment
(x3, y3, y3) = point
u =
(x3 - x1)(x2 - x1) + (y3 - y1)(y2 - y1) + (z3 - z1)(z2 - z1)
-----------------------------------------------------------
(x2 - x1)(x2 - x1) + (y2 - y1)(y2 - y1) + (z2 - z1)(z2 - z1)
u = the location between the two end points of the line which is closest to the point.
If u is not between 0 and 1 then the closest point is not between P1 and P2
----------------------------
LINE-SPHERE-INTERSECTION
----------------------------
To find out if a line intersects a sphere, find the closest point on the line to the center of the sphere.
Then calculate the location of that point using U.
And finally, find out the if the distance from that point to the center of the sphere is less than the radius of the sphere.
Why might it be of help? Well, if you imagine each side of your box is a segment of an infinite line, then you have four lines, and the above will give you the point on each line that is closest to the center of the circle. This might help you figure out if the circle is in the box.
For example, if all four points are on the portions of the lines which contain the edges of the box, then you know the center point of the circle is inside the box.
But I dunno if that would extend to finding out if the circle is in the box. It's an interesting problem though.