1
$\begingroup$

I have started doing some reading about power analysis (SPA, DPA), and it is not clear to me in what Scenario one would have to fear such an attack. It appears to me that a typical situation is

  • Scenario A: A key is stored in plain text on a smart card, the analysis is conducted while encryption/decryption request are sent to the card and in effect the key is obtained.

However I am more interested in

  • Scenario B: A key is stored encrypted on a device (smart card?). During normal operation one would send the passphrase (required for decrypting the key) together with an encryption/decryption request to be performed by the decrypted key. Now the assumption is that an attacker does not posses the passphrase.

Would it still be possible to obtain the passphrase by power analysis? (From my imagination the only thing one could do is feeding wrong passphrases.) From my understanding scenario B is not susceptible to power analysis, or am I wrong?

$\endgroup$
1
  • 1
    $\begingroup$ The passphrase is usually called PIN and when checking if the correct one was sent to the card, the following SPA-based attack has to be prevented: If you check digit by digit and stop as soon you find a wrong digit, the attacker sees how many digits (s)he already guessed wrong. This reduces the number of tries required from $s^n$ to $s\cdot n$ (worst case if $s$ is the size of the alphabeth and $n$ its length). Therefore often the PIN is stored encrypted and the given value is encrypted before comparison, so DPA applies to this encryption (with less interesting key). $\endgroup$
    – j.p.
    Commented Jul 30, 2017 at 6:51

1 Answer 1

1
$\begingroup$

This seems to be correct.

I do see one possible attack vector where repetition of the request could be used for DPA attacks on the decryption key. It is basically the plaintext when looking at the decryption using the passphrase. It is also the encryption / decryption key for the subsequent operation using the key. But that's a scenario that is less likely than an attacker holding the smart card and trying to use DPA to retrieve an encryption key.

If you send the password in plaintext then you should of course consider the security of the password before it actually reaches the smart card. DPA attacks are not interesting if the adversary can simply eavesdrop on an unprotected password.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.