I've browsed a bit, so hopefully I've got all my information in order.
I haven't been able to find an answer for this specific problem.
It's for image processing. I'm simplifying 2D regions by applying
low-pass filters to their contours. Specifically, I take an 8-connected
clockwise contour of (arbitrary) n points, and make two new functions,
x(i) and y(i), out of the points' coordinates. Then I do a DFT on each,
apply a Gaussian or low-pass cutoff filter, inverse DFT, and replot. It
works like a charm if I use a naive O(n^2) DFT implementation - but of
course, it's very slow.
The problem is that I'm stuck with a radix-2 FFT, for reasons best kept
to myself.

Here are the features of my problem:
1. The functions are KNOWN to be periodic.
2. I need an exact spectrum, or I can't reconstruct the exact contour.
3. I can't downsample or upsample, or I can't reconstruct the exact
contour.
I've tried zero padding, padding with the average value, and padding
with a truncated copy of the function, and none of them worked.
(Obviously, windowing isn't going to help, because I need to be able to
reconstruct the exact contour. I'm picky that way.)
Is there a way I can use a radix-2 FFT on a known periodic signal of
arbitrary length?