Does "buff" mean the same thing in these two sentences?

To strip to the buff.

Swimming in the buff.
the same meaning