your connection in Toronto will be painless, you will be directed towards the (almost always empty) international connection line.
Minimum connection times are here:
http://www.aircanada.com/en/travelin...tiontimes.html
On the way back you will clear US Customs at YYZ, thus saving you time at IAD