If this had happened in the US or Canada, at the border
A copy would probably have been taken. I'm guessing the security official wasn't familiar with the (PGP?) login screen, hence the request. I doubt any harm was meant.
Once again boys and girls! When you want to transport sensitive data across borders, don't! Do it using those new fangled interwebs instead (and preferably from your own or your employer's storage) once you arrive at your destination.