Not necessarily. You could have encrypted the data to your friend's asymmetric keypair. Then you aren't technically carrying any data other than your own.
"Has anyone given you anything to carry for them?"
No.
Is that "unkown data" as the guy above you seems to believe? Hardly. If I pack my suitcase and then just have a friend come in with a padlock to which only he holds the key and he locks it, are the contents on my suitcase unknown to me? No, they aren't. They are my belongings and I just chose, for security reasons to not only stop carrying the key on me but to not even knowing what that key is.
We live in a very sad state of affairs that will continue to deteriorate.
Um, you realize that you can't carry locked boxes through customs and then refuse to open them, right? That comparison actually hurts the case for taking encrypted data through customs.
But sadly we live in a world where carrying encrypted data is a flag, and will get you more scrutiny, and get your name put on lists.
It also doesn't help if you carry the passphrase on you with your encrypted data.
You are asked when you check in if anyone has given you anything to carry for them. You presumably answered "no" to that question, yet now you're saying "Yes, they asked me to carry this unknown data".
They don't care if you know the password or not. They care if the data can be made available in plaintext or not. While you do not know the password you do know the method of making the plaintext available - you get whoever does know the passphrase to enter it. Thus, you're going to be detained until the passphrase turns up, or the machine is going to be confiscated and all data cloned and you're going to be denied entry.
Being denied entry is expensive. It also has consequences for future travel. Visas might be different. Customs clearance will be different. Possibility of getting in is lower.
> You can just tell em "Take it up with my superior back home"
They do this all the time. Watch a couple of hours of any of the various border-crossing / customs control "reality" tv shows. You'll see someone held in a room for hours, questioned for hours, with all their documents being searched for phone numbers and people being called to corroborate the story. They have no problem making phone calls back home and to the destination country.
This method is going out of your way to give them something to detain you for; it is making extra effort to look guilty.