How smart cards technically store their secrets?
I know smart card is whole computer on chip and it respond only to challenges. I know their software/firmware doesn't allow (it doesn't have the feature for that at all) to ever reveal the secret to others.
Anyway, the smart card must store secrets in its flash? Some claim that secrets are encrypted inside smart card, but then even the card itself can't use it, right?
I think smart cards store secrets as plain text in their flash, is that right? If so, every that gets physically access to the flash can read secrets directly, right? Of course, it's very hard because tamper-resistant design, but the thing is: is the case that security of smart cards is on physically tamper-resitance of package of the chip?