If the straight line ax+by+p=0 and xcosα+ysinα=p enclosed an angle of π4 and the line xsinα−ycosα=0 meets them at the same point, then a2+b2 is