The easiest way is to select the Crop tool and enter the dimensions that you want to crop to in the width and height fields. The height (or width in the portrait format) should match the height of your photo in pixels, then you can enter the width required to match your selected aspect ratio.