Private classical capacity with a symmetric side channel and its application to quantum cryptography