Gearbox for tidal power plant