Security evaluation & functional testing of contact and contactless smart cards and payment terminals according to Discover specifications