No both of these medications are to strong for your dog and can cause serious issues with his liver and kidneys. Please do not administer these medications.
You can safely give him aspirin until the morning. There are also dog pain relievers that can be purchased at your local pet store until he can see his vet.With aspirin the dosage is 5mgs per pound of body weight, every 12 hours for a total of two days. Though if he has any bleeding problems or is on any nasiads then aspirin is not recommended.